mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
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
This commit is contained in:
parent
e9a7ea6865
commit
4cb310b67d
@ -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
Block a user