parent
5a611397a2
commit
61a57138c2
|
@ -30,10 +30,6 @@ public:
|
||||||
COREFileNode(CoreLinkingContext &ctx, StringRef path)
|
COREFileNode(CoreLinkingContext &ctx, StringRef path)
|
||||||
: FileNode(path), _ctx(ctx) {}
|
: FileNode(path), _ctx(ctx) {}
|
||||||
|
|
||||||
static inline bool classof(const InputElement *a) {
|
|
||||||
return a->kind() == InputElement::Kind::File;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// \brief validates the Input Element
|
/// \brief validates the Input Element
|
||||||
virtual bool validate() {
|
virtual bool validate() {
|
||||||
(void)_ctx;
|
(void)_ctx;
|
||||||
|
|
|
@ -30,10 +30,6 @@ public:
|
||||||
MachOFileNode(MachOLinkingContext &ctx, StringRef path, bool isWholeArchive)
|
MachOFileNode(MachOLinkingContext &ctx, StringRef path, bool isWholeArchive)
|
||||||
: FileNode(path), _ctx(ctx), _isWholeArchive(isWholeArchive) {}
|
: FileNode(path), _ctx(ctx), _isWholeArchive(isWholeArchive) {}
|
||||||
|
|
||||||
static inline bool classof(const InputElement *a) {
|
|
||||||
return a->kind() == InputElement::Kind::File;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// \brief validates the Input Element
|
/// \brief validates the Input Element
|
||||||
virtual bool validate() {
|
virtual bool validate() {
|
||||||
(void)_ctx;
|
(void)_ctx;
|
||||||
|
|
|
@ -35,10 +35,6 @@ public:
|
||||||
_isWholeArchive(isWholeArchive), _asNeeded(asNeeded),
|
_isWholeArchive(isWholeArchive), _asNeeded(asNeeded),
|
||||||
_isDashlPrefix(dashlPrefix) {}
|
_isDashlPrefix(dashlPrefix) {}
|
||||||
|
|
||||||
static inline bool classof(const InputElement *a) {
|
|
||||||
return a->kind() == InputElement::Kind::File;
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual ErrorOr<StringRef> getPath(const LinkingContext &ctx) const;
|
virtual ErrorOr<StringRef> getPath(const LinkingContext &ctx) const;
|
||||||
|
|
||||||
/// \brief validates the Input Element
|
/// \brief validates the Input Element
|
||||||
|
@ -104,10 +100,6 @@ public:
|
||||||
ELFGroup(const ELFLinkingContext &ctx, int64_t ordinal)
|
ELFGroup(const ELFLinkingContext &ctx, int64_t ordinal)
|
||||||
: Group(ordinal), _elfLinkingContext(ctx) {}
|
: Group(ordinal), _elfLinkingContext(ctx) {}
|
||||||
|
|
||||||
static inline bool classof(const InputElement *a) {
|
|
||||||
return a->kind() == InputElement::Kind::Control;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// \brief Validate the options
|
/// \brief Validate the options
|
||||||
virtual bool validate() {
|
virtual bool validate() {
|
||||||
(void)_elfLinkingContext;
|
(void)_elfLinkingContext;
|
||||||
|
@ -137,10 +129,6 @@ public:
|
||||||
_linkerScript(nullptr)
|
_linkerScript(nullptr)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
static inline bool classof(const InputElement *a) {
|
|
||||||
return a->kind() == InputElement::Kind::File;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// \brief Is this node part of resolution ?
|
/// \brief Is this node part of resolution ?
|
||||||
virtual bool isHidden() const { return true; }
|
virtual bool isHidden() const { return true; }
|
||||||
|
|
||||||
|
|
|
@ -31,10 +31,6 @@ public:
|
||||||
PECOFFFileNode(PECOFFLinkingContext &ctx, StringRef path)
|
PECOFFFileNode(PECOFFLinkingContext &ctx, StringRef path)
|
||||||
: FileNode(path), _ctx(ctx) {}
|
: FileNode(path), _ctx(ctx) {}
|
||||||
|
|
||||||
static inline bool classof(const InputElement *a) {
|
|
||||||
return a->kind() == InputElement::Kind::File;
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual ErrorOr<StringRef> getPath(const LinkingContext &ctx) const;
|
virtual ErrorOr<StringRef> getPath(const LinkingContext &ctx) const;
|
||||||
|
|
||||||
/// \brief Parse the input file to lld::File.
|
/// \brief Parse the input file to lld::File.
|
||||||
|
@ -66,10 +62,6 @@ class PECOFFGroup : public Group {
|
||||||
public:
|
public:
|
||||||
PECOFFGroup() : Group(0) {}
|
PECOFFGroup() : Group(0) {}
|
||||||
|
|
||||||
static inline bool classof(const InputElement *a) {
|
|
||||||
return a->kind() == InputElement::Kind::Control;
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual bool validate() { return true; }
|
virtual bool validate() { return true; }
|
||||||
virtual bool dump(raw_ostream &) { return true; }
|
virtual bool dump(raw_ostream &) { return true; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue