aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bugpoint
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
commitafd39f0cc452026eac4a9dd4d875e571de6e0a35 (patch)
treef699fa47962b105495329b8add59690509b37c1b /tools/bugpoint
parent833eb68a1f18f361b2429fe12d13533cc9e3debe (diff)
downloadexternal_llvm-afd39f0cc452026eac4a9dd4d875e571de6e0a35.zip
external_llvm-afd39f0cc452026eac4a9dd4d875e571de6e0a35.tar.gz
external_llvm-afd39f0cc452026eac4a9dd4d875e571de6e0a35.tar.bz2
Change DisambiguateGlobalSymbols to not rename asm globals, which breaks
bugpoint on leopard. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30150 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r--tools/bugpoint/Miscompilation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp
index 7660a83..3503f7b 100644
--- a/tools/bugpoint/Miscompilation.cpp
+++ b/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));