diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-12-06 20:51:30 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-12-06 20:51:30 +0000 |
commit | 0fccc74103dee95d6baa885963b7337ae5daec7e (patch) | |
tree | ac0941670d0e07f396ed99a5f6bd9463837bbd42 /tools/bugpoint | |
parent | f88471ded7deb2098c0d6c9588d17c692f88ab03 (diff) | |
download | llvm-0fccc74103dee95d6baa885963b7337ae5daec7e.tar.gz llvm-0fccc74103dee95d6baa885963b7337ae5daec7e.tar.bz2 llvm-0fccc74103dee95d6baa885963b7337ae5daec7e.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24626 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index b3e616111e..dfe67de0cd 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/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) |