summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/Miscompilation.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-07 18:21:07 +0000
committerChris Lattner <sabre@nondot.org>2006-09-07 18:21:07 +0000
commit3b18c1a94629c0ea1083acfef02ade5db2b59027 (patch)
treef18f91f85d302ac3cd5e6bf7de68acab25fc5b05 /llvm/tools/bugpoint/Miscompilation.cpp
parent721fc383421f458075fd4023e05b5175f97c37fb (diff)
downloadbcm5719-llvm-3b18c1a94629c0ea1083acfef02ade5db2b59027.tar.gz
bcm5719-llvm-3b18c1a94629c0ea1083acfef02ade5db2b59027.zip
Change DisambiguateGlobalSymbols to not rename asm globals, which breaks
bugpoint on leopard. llvm-svn: 30150
Diffstat (limited to 'llvm/tools/bugpoint/Miscompilation.cpp')
-rw-r--r--llvm/tools/bugpoint/Miscompilation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp
index 7660a83d300..3503f7b2c79 100644
--- a/llvm/tools/bugpoint/Miscompilation.cpp
+++ b/llvm/tools/bugpoint/Miscompilation.cpp
@@ -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));
OpenPOWER on IntegriCloud