diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-01 00:41:51 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-01 00:41:51 +0000 |
commit | 4cb310b67d95756c62ab3d7c76d0a75c4fb3403f (patch) | |
tree | 908dce56fbbc5dc2652d10889b4531cd571edd53 /tools | |
parent | e9a7ea68653689966417443b8ac2528c1d9d3ccf (diff) | |
download | external_llvm-4cb310b67d95756c62ab3d7c76d0a75c4fb3403f.zip external_llvm-4cb310b67d95756c62ab3d7c76d0a75c4fb3403f.tar.gz external_llvm-4cb310b67d95756c62ab3d7c76d0a75c4fb3403f.tar.bz2 |
Don't tell the linker about available_externally definitions. If we do, it will
complain about duplicated definitions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124634 91177308-0d34-0410-b5e6-96231b3b80d8
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()); |