Change DisambiguateGlobalSymbols to not rename asm globals, which breaks

bugpoint on leopard.

llvm-svn: 30150
This commit is contained in:
Chris Lattner 2006-09-07 18:21:07 +00:00
parent 721fc38342
commit 3b18c1a946
1 changed files with 1 additions and 0 deletions

View File

@ -234,6 +234,7 @@ static void DisambiguateGlobalSymbols(Module *M) {
Mangler Mang(*M);
// Agree with the CBE on symbol naming
Mang.markCharUnacceptable('.');
Mang.setPreserveAsmNames(true);
for (Module::global_iterator I = M->global_begin(), E = M->global_end();
I != E; ++I)
I->setName(Mang.getValueName(I));