summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-12-01 23:01:51 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-12-01 23:01:51 +0000
commit6d2c313b4621345e2a5455f694cda88f4af935c5 (patch)
treef94abe3f621356249a41ea3f922e9f00a278097a
parente39cd5b14467f79e85512b5aa55da6f078910e92 (diff)
downloadbcm5719-llvm-6d2c313b4621345e2a5455f694cda88f4af935c5.tar.gz
bcm5719-llvm-6d2c313b4621345e2a5455f694cda88f4af935c5.zip
Remove unnecessary getter.
llvm-svn: 254466
-rw-r--r--llvm/lib/Linker/LinkModules.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index 271c765d63c..94010221846 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud