diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-15 04:50:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-15 04:50:47 +0000 |
commit | c35b5bac328d682ef5eda5dfa01173861cabaf0e (patch) | |
tree | 8864860b8f67b401c003bd8d4a34ecc37ff9a17f /llvm/tools/bugpoint/Miscompilation.cpp | |
parent | fe78558f9537e24ed8edb11ee56afb8b3214c801 (diff) | |
download | bcm5719-llvm-c35b5bac328d682ef5eda5dfa01173861cabaf0e.tar.gz bcm5719-llvm-c35b5bac328d682ef5eda5dfa01173861cabaf0e.zip |
eliminate the Mangler::PreserveAsmNames bit, the sole client of this
can do it perfectly well itself.
llvm-svn: 75743
Diffstat (limited to 'llvm/tools/bugpoint/Miscompilation.cpp')
-rw-r--r-- | llvm/tools/bugpoint/Miscompilation.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp index 4a25615285d..c655e714271 100644 --- a/llvm/tools/bugpoint/Miscompilation.cpp +++ b/llvm/tools/bugpoint/Miscompilation.cpp @@ -241,12 +241,17 @@ 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.getMangledName(I)); - for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I) - I->setName(Mang.getMangledName(I)); + I != E; ++I) { + // Don't mangle asm names. + if (!I->hasName() || I->getName()[0] != 1) + I->setName(Mang.getMangledName(I)); + } + for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I) { + // Don't mangle asm names. + if (!I->hasName() || I->getName()[0] != 1) + I->setName(Mang.getMangledName(I)); + } } /// ExtractLoops - Given a reduced list of functions that still exposed the bug, |