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
9fa5a67d3d
commit
08bccdad19
|
|
@ -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…
Reference in New Issue