Change DisambiguateGlobalSymbols to not rename asm globals, which breaks
authorChris Lattner <sabre@nondot.org>
Thu, 7 Sep 2006 18:21:07 +0000 (18:21 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 7 Sep 2006 18:21:07 +0000 (18:21 +0000)
bugpoint on leopard.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30150 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/Miscompilation.cpp

index 7660a83d3009fd1ec50038bfde3a42fe2eaad728..3503f7b2c79e8da5adf557839977545631f5cb03 100644 (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));