mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
remove use of getMangledName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93655 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6dfdad9c06
commit
c5451065e0
@ -335,7 +335,7 @@ void LTOCodeGenerator::applyScopeRestrictions()
|
||||
for (Module::global_iterator v = mergedModule->global_begin(),
|
||||
e = mergedModule->global_end(); v != e; ++v) {
|
||||
if ( !v->isDeclaration()
|
||||
&& _mustPreserveSymbols.count(mangler.getMangledName(v)) )
|
||||
&& _mustPreserveSymbols.count(mangler.getNameWithPrefix(v)) )
|
||||
mustPreserveList.push_back(::strdup(v->getNameStr().c_str()));
|
||||
}
|
||||
passes.add(createInternalizePass(mustPreserveList));
|
||||
|
Loading…
x
Reference in New Issue
Block a user