diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-07-30 15:57:51 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-07-30 15:57:51 +0000 |
commit | 4366b6cede7090e6851ae064a54398963c664b38 (patch) | |
tree | ad40ea9b0105a5ba06c935cdf8a1121e19c21aaf /lib/LTO/LTOModule.cpp | |
parent | d59fa04f043b26ab37ead84ed6b37a11d7aed538 (diff) |
Add the missing hasLinkOnceODRLinkage predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/LTO/LTOModule.cpp')
-rw-r--r-- | lib/LTO/LTOModule.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/LTO/LTOModule.cpp b/lib/LTO/LTOModule.cpp index 3600baa5bbf..1c8e36d743e 100644 --- a/lib/LTO/LTOModule.cpp +++ b/lib/LTO/LTOModule.cpp @@ -349,9 +349,7 @@ void LTOModule::addDefinedFunctionSymbol(const char *Name, const Function *F) { static bool canBeHidden(const GlobalValue *GV) { // FIXME: this is duplicated with another static function in AsmPrinter.cpp - GlobalValue::LinkageTypes L = GV->getLinkage(); - - if (L != GlobalValue::LinkOnceODRLinkage) + if (!GV->hasLinkOnceODRLinkage()) return false; if (GV->hasUnnamedAddr()) |