mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
This solves the problem of the CBE renaming symbols that start with . but the assembly side still trying to reference them by their old names. Should be safe untill we hit a language front end that lets you specify such a name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24626 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f88471ded7
commit
0fccc74103
@ -232,6 +232,8 @@ static void DisambiguateGlobalSymbols(Module *M) {
|
||||
// mangler is used by the two code generators), but having symbols with the
|
||||
// same name causes warnings to be emitted by the code generator.
|
||||
Mangler Mang(*M);
|
||||
// Agree with the CBE on symbol naming
|
||||
Mang.markCharUnacceptable('.');
|
||||
for (Module::global_iterator I = M->global_begin(), E = M->global_end(); I != E; ++I)
|
||||
I->setName(Mang.getValueName(I));
|
||||
for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I)
|
||||
|
Loading…
x
Reference in New Issue
Block a user