diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lto/LTOModule.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp index 59c8b35..e2ecabc 100644 --- a/tools/lto/LTOModule.cpp +++ b/tools/lto/LTOModule.cpp @@ -304,6 +304,10 @@ void LTOModule::addDefinedSymbol(GlobalValue *def, Mangler &mangler, if (def->getName().startswith("llvm.")) return; + // ignore available_externally + if (def->hasAvailableExternallyLinkage()) + return; + // string is owned by _defines const char *symbolName = ::strdup(mangler.getNameWithPrefix(def).c_str()); |