summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-04-02 06:18:12 +0000
committerRui Ueyama <ruiu@google.com>2014-04-02 06:18:12 +0000
commit9b1877f704ff5386887f6d8bf7a0d43bb7c14e20 (patch)
treeca69e9ac3c964bb988cc2d7fd2a1d9413213baad
parentabe1a398e33bac03596116c97a7375d074101903 (diff)
downloadbcm5719-llvm-9b1877f704ff5386887f6d8bf7a0d43bb7c14e20.tar.gz
bcm5719-llvm-9b1877f704ff5386887f6d8bf7a0d43bb7c14e20.zip
Devirtualize Resolver.
No one inherits Resolver. Virtualizing the member functions was just making it inefficient. llvm-svn: 205399
-rw-r--r--lld/include/lld/Core/Resolver.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/lld/include/lld/Core/Resolver.h b/lld/include/lld/Core/Resolver.h
index 4e6e42599bc..1a982b72a8c 100644
--- a/lld/include/lld/Core/Resolver.h
+++ b/lld/include/lld/Core/Resolver.h
@@ -40,23 +40,21 @@ public:
: _context(context), _symbolTable(context), _result(new MergedFile()),
_haveLLVMObjs(false), _addToFinalSection(false) {}
- virtual ~Resolver() {}
-
// InputFiles::Handler methods
- virtual void doDefinedAtom(const DefinedAtom&);
- virtual void doUndefinedAtom(const UndefinedAtom&);
- virtual void doSharedLibraryAtom(const SharedLibraryAtom &);
- virtual void doAbsoluteAtom(const AbsoluteAtom &);
+ void doDefinedAtom(const DefinedAtom&);
+ void doUndefinedAtom(const UndefinedAtom&);
+ void doSharedLibraryAtom(const SharedLibraryAtom &);
+ void doAbsoluteAtom(const AbsoluteAtom &);
// Handle files, this adds atoms from the current file thats
// being processed by the resolver
- virtual void handleFile(const File &);
+ void handleFile(const File &);
// Handle an archive library file.
- virtual void handleArchiveFile(const File &);
+ void handleArchiveFile(const File &);
// Handle a shared library file.
- virtual void handleSharedLibrary(const File &);
+ void handleSharedLibrary(const File &);
/// @brief do work of merging and resolving and return list
bool resolve();
OpenPOWER on IntegriCloud