[lld] r198035 - Do not make an unnecessary copy of DenseMap.
Rui Ueyama
ruiu at google.com
Wed Dec 25 22:57:37 PST 2013
Author: ruiu
Date: Thu Dec 26 00:57:37 2013
New Revision: 198035
URL: http://llvm.org/viewvc/llvm-project?rev=198035&view=rev
Log:
Do not make an unnecessary copy of DenseMap.
Modified:
lld/trunk/lib/Core/Resolver.cpp
Modified: lld/trunk/lib/Core/Resolver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/Resolver.cpp?rev=198035&r1=198034&r2=198035&view=diff
==============================================================================
--- lld/trunk/lib/Core/Resolver.cpp (original)
+++ lld/trunk/lib/Core/Resolver.cpp Thu Dec 26 00:57:37 2013
@@ -49,7 +49,7 @@ public:
}
private:
- const llvm::DenseSet<const Atom *> _liveAtoms;
+ const llvm::DenseSet<const Atom *> &_liveAtoms;
};
/// This is used as a filter function to std::remove_if to coalesced atoms.
More information about the llvm-commits
mailing list