Remove redundant 'classof' functions.

llvm-svn: 197726
This commit is contained in:
Joey Gouly 2013-12-19 21:51:13 +00:00
parent 5a611397a2
commit 61a57138c2
4 changed files with 0 additions and 28 deletions

View File

@ -30,10 +30,6 @@ public:
COREFileNode(CoreLinkingContext &ctx, StringRef path)
: FileNode(path), _ctx(ctx) {}
static inline bool classof(const InputElement *a) {
return a->kind() == InputElement::Kind::File;
}
/// \brief validates the Input Element
virtual bool validate() {
(void)_ctx;

View File

@ -30,10 +30,6 @@ public:
MachOFileNode(MachOLinkingContext &ctx, StringRef path, bool 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
virtual bool validate() {
(void)_ctx;

View File

@ -35,10 +35,6 @@ public:
_isWholeArchive(isWholeArchive), _asNeeded(asNeeded),
_isDashlPrefix(dashlPrefix) {}
static inline bool classof(const InputElement *a) {
return a->kind() == InputElement::Kind::File;
}
virtual ErrorOr<StringRef> getPath(const LinkingContext &ctx) const;
/// \brief validates the Input Element
@ -104,10 +100,6 @@ public:
ELFGroup(const ELFLinkingContext &ctx, int64_t ordinal)
: Group(ordinal), _elfLinkingContext(ctx) {}
static inline bool classof(const InputElement *a) {
return a->kind() == InputElement::Kind::Control;
}
/// \brief Validate the options
virtual bool validate() {
(void)_elfLinkingContext;
@ -137,10 +129,6 @@ public:
_linkerScript(nullptr)
{}
static inline bool classof(const InputElement *a) {
return a->kind() == InputElement::Kind::File;
}
/// \brief Is this node part of resolution ?
virtual bool isHidden() const { return true; }

View File

@ -31,10 +31,6 @@ public:
PECOFFFileNode(PECOFFLinkingContext &ctx, StringRef path)
: 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;
/// \brief Parse the input file to lld::File.
@ -66,10 +62,6 @@ class PECOFFGroup : public Group {
public:
PECOFFGroup() : Group(0) {}
static inline bool classof(const InputElement *a) {
return a->kind() == InputElement::Kind::Control;
}
virtual bool validate() { return true; }
virtual bool dump(raw_ostream &) { return true; }