mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +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;
|
SmallString<64> Buffer;
|
||||||
for (Module::iterator f = mergedModule->begin(),
|
for (Module::iterator f = mergedModule->begin(),
|
||||||
e = mergedModule->end(); f != e; ++f) {
|
e = mergedModule->end(); f != e; ++f) {
|
||||||
|
Buffer.clear();
|
||||||
mangler.getNameWithPrefix(Buffer, f, false);
|
mangler.getNameWithPrefix(Buffer, f, false);
|
||||||
if (!f->isDeclaration() &&
|
if (!f->isDeclaration() &&
|
||||||
_mustPreserveSymbols.count(Buffer))
|
_mustPreserveSymbols.count(Buffer))
|
||||||
@ -360,6 +361,7 @@ void LTOCodeGenerator::applyScopeRestrictions() {
|
|||||||
}
|
}
|
||||||
for (Module::global_iterator v = mergedModule->global_begin(),
|
for (Module::global_iterator v = mergedModule->global_begin(),
|
||||||
e = mergedModule->global_end(); v != e; ++v) {
|
e = mergedModule->global_end(); v != e; ++v) {
|
||||||
|
Buffer.clear();
|
||||||
mangler.getNameWithPrefix(Buffer, v, false);
|
mangler.getNameWithPrefix(Buffer, v, false);
|
||||||
if (!v->isDeclaration() &&
|
if (!v->isDeclaration() &&
|
||||||
_mustPreserveSymbols.count(Buffer))
|
_mustPreserveSymbols.count(Buffer))
|
||||||
|
Loading…
Reference in New Issue
Block a user