summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/Miscompilation.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-12-06 20:51:30 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-12-06 20:51:30 +0000
commit312e65568c2d00fbb3d41c5ab790862d1040e6f9 (patch)
tree708969a299971746bc24f5d00b1a4b4c2db07ce6 /llvm/tools/bugpoint/Miscompilation.cpp
parent973cd1c8459e2157633594545e8183325195fe20 (diff)
downloadbcm5719-llvm-312e65568c2d00fbb3d41c5ab790862d1040e6f9.tar.gz
bcm5719-llvm-312e65568c2d00fbb3d41c5ab790862d1040e6f9.zip
This solves the problem of the CBE renaming symbols that start with . but the assembly side still trying to reference them by their old names. Should be safe untill we hit a language front end that lets you specify such a name.
llvm-svn: 24626
Diffstat (limited to 'llvm/tools/bugpoint/Miscompilation.cpp')
-rw-r--r--llvm/tools/bugpoint/Miscompilation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp
index b3e616111e8..dfe67de0cd0 100644
--- a/llvm/tools/bugpoint/Miscompilation.cpp
+++ b/llvm/tools/bugpoint/Miscompilation.cpp
@@ -232,6 +232,8 @@ static void DisambiguateGlobalSymbols(Module *M) {
// mangler is used by the two code generators), but having symbols with the
// same name causes warnings to be emitted by the code generator.
Mangler Mang(*M);
+ // Agree with the CBE on symbol naming
+ Mang.markCharUnacceptable('.');
for (Module::global_iterator I = M->global_begin(), E = M->global_end(); I != E; ++I)
I->setName(Mang.getValueName(I));
for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I)
OpenPOWER on IntegriCloud