mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Fix a silly bug I introduced when dropping std::string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125420 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
776b7df0e7
commit
d7401b35e3
@ -353,6 +353,7 @@ void LTOCodeGenerator::applyScopeRestrictions() {
|
||||
SmallString<64> Buffer;
|
||||
for (Module::iterator f = mergedModule->begin(),
|
||||
e = mergedModule->end(); f != e; ++f) {
|
||||
Buffer.clear();
|
||||
mangler.getNameWithPrefix(Buffer, f, false);
|
||||
if (!f->isDeclaration() &&
|
||||
_mustPreserveSymbols.count(Buffer))
|
||||
@ -360,6 +361,7 @@ void LTOCodeGenerator::applyScopeRestrictions() {
|
||||
}
|
||||
for (Module::global_iterator v = mergedModule->global_begin(),
|
||||
e = mergedModule->global_end(); v != e; ++v) {
|
||||
Buffer.clear();
|
||||
mangler.getNameWithPrefix(Buffer, v, false);
|
||||
if (!v->isDeclaration() &&
|
||||
_mustPreserveSymbols.count(Buffer))
|
||||
|
Loading…
Reference in New Issue
Block a user