[llvm] r254466 - Remove unnecessary getter.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 1 15:01:51 PST 2015
Author: rafael
Date: Tue Dec 1 17:01:51 2015
New Revision: 254466
URL: http://llvm.org/viewvc/llvm-project?rev=254466&view=rev
Log:
Remove unnecessary getter.
Modified:
llvm/trunk/lib/Linker/LinkModules.cpp
Modified: llvm/trunk/lib/Linker/LinkModules.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/LinkModules.cpp?rev=254466&r1=254465&r2=254466&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/LinkModules.cpp (original)
+++ llvm/trunk/lib/Linker/LinkModules.cpp Tue Dec 1 17:01:51 2015
@@ -459,9 +459,6 @@ private:
/// Check if we should promote the given local value to global scope.
bool doPromoteLocalToGlobal(const GlobalValue *SGV);
- /// Check if all global value body linking is complete.
- bool doneLinkingBodies() { return DoneLinkingBodies; }
-
bool shouldLinkFromSource(bool &LinkFromSrc, const GlobalValue &Dest,
const GlobalValue &Src);
@@ -886,7 +883,7 @@ Value *ModuleLinker::materializeDeclFor(
// If we are done linking global value bodies (i.e. we are performing
// metadata linking), don't link in the global value due to this
// reference, simply map it to null.
- if (doneLinkingBodies())
+ if (DoneLinkingBodies)
return nullptr;
linkGlobalValueProto(SGV);
More information about the llvm-commits
mailing list