mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 09:13:34 +00:00
Don't tell the linker about available_externally definitions. If we do, it will
complain about duplicated definitions. llvm-svn: 124634
This commit is contained in:
parent
97c467ee47
commit
54673ba6ca
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user