Skip to content

Commit

Permalink
Remove unnecessary getter.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254466 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
espindola committed Dec 1, 2015
1 parent 427ad06 commit 97a345e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Linker/LinkModules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,6 @@ class ModuleLinker {
/// 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);

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 97a345e

Please sign in to comment.