mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
switch liblto to use the new getNameWithPrefix() method instead of getMangledName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93643 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -329,7 +329,7 @@ void LTOCodeGenerator::applyScopeRestrictions()
|
||||
for (Module::iterator f = mergedModule->begin(),
|
||||
e = mergedModule->end(); f != e; ++f) {
|
||||
if ( !f->isDeclaration()
|
||||
&& _mustPreserveSymbols.count(mangler.getMangledName(f)) )
|
||||
&& _mustPreserveSymbols.count(mangler.getNameWithPrefix(f)) )
|
||||
mustPreserveList.push_back(::strdup(f->getNameStr().c_str()));
|
||||
}
|
||||
for (Module::global_iterator v = mergedModule->global_begin(),
|
||||
|
Reference in New Issue
Block a user