diff options
| author | Nick Kledzik <kledzik@apple.com> | 2013-05-08 21:34:11 +0000 |
|---|---|---|
| committer | Nick Kledzik <kledzik@apple.com> | 2013-05-08 21:34:11 +0000 |
| commit | 80d8308b5707b92626ef6f7adda976327507adaa (patch) | |
| tree | b55efa3de7dcdf320149ed78d2add6c398d0b9a8 /lld/lib/Core/Resolver.cpp | |
| parent | b7d6e2a4e0e62d5022c8a6a77d34911e2dbede6d (diff) | |
| download | bcm5719-llvm-80d8308b5707b92626ef6f7adda976327507adaa.tar.gz bcm5719-llvm-80d8308b5707b92626ef6f7adda976327507adaa.zip | |
Use anonymous namespace for local classes. Patch by Rui Ueyama
llvm-svn: 181473
Diffstat (limited to 'lld/lib/Core/Resolver.cpp')
| -rw-r--r-- | lld/lib/Core/Resolver.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lld/lib/Core/Resolver.cpp b/lld/lib/Core/Resolver.cpp index 8e94929340f..c8d80343fd1 100644 --- a/lld/lib/Core/Resolver.cpp +++ b/lld/lib/Core/Resolver.cpp @@ -27,10 +27,12 @@ namespace lld { +namespace { + /// This is used as a filter function to std::remove_if to dead strip atoms. class NotLive { public: - NotLive(const llvm::DenseSet<const Atom*>& la) : _liveAtoms(la) { } + explicit NotLive(const llvm::DenseSet<const Atom*>& la) : _liveAtoms(la) { } bool operator()(const Atom *atom) const { // don't remove if live @@ -53,7 +55,7 @@ private: /// This is used as a filter function to std::remove_if to coalesced atoms. class AtomCoalescedAway { public: - AtomCoalescedAway(SymbolTable &sym) : _symbolTable(sym) {} + explicit AtomCoalescedAway(SymbolTable &sym) : _symbolTable(sym) {} bool operator()(const Atom *atom) const { const Atom *rep = _symbolTable.replacement(atom); @@ -64,6 +66,8 @@ private: SymbolTable &_symbolTable; }; +} // namespace + // add all atoms from all initial .o files void Resolver::buildInitialAtomList() { |

