From: Rafael Espindola Date: Tue, 1 Dec 2015 23:01:51 +0000 (+0000) Subject: Remove unnecessary getter. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=97a345e35acedef05160f5578dec11bc06f19ff5;p=oota-llvm.git Remove unnecessary getter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254466 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 271c765d63c..94010221846 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -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(Value *V) { // 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);