diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-13 07:16:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-13 07:16:53 +0000 |
commit | dfbcb8c38bb1637289801f37bb22cb7065891611 (patch) | |
tree | 94637b298f1913af469b830759214710ab249e77 /lib/CodeGen | |
parent | bf86e5df180139310bf2f0d71bef58e208dce31d (diff) | |
download | external_llvm-dfbcb8c38bb1637289801f37bb22cb7065891611.zip external_llvm-dfbcb8c38bb1637289801f37bb22cb7065891611.tar.gz external_llvm-dfbcb8c38bb1637289801f37bb22cb7065891611.tar.bz2 |
use the new form of getNameWithPrefix, not makeNameProper.
Among other things, this would do very weird things if the
basic block name had (e.g.) a space in it on darwin:
makeNameProper would add quotes, then the mcsymbol would
escape the quotes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index b1957bb..64f49c4 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1682,7 +1682,7 @@ MCSymbol *AsmPrinter::GetBlockAddressSymbol(const Function *F, SmallString<60> NameResult; raw_svector_ostream(NameResult) << MAI->getPrivateGlobalPrefix() << "BA" << FuncName.size() << '_' << FuncName << '_'; - Mang->makeNameProper(NameResult, BB->getName()); + Mang->getNameWithPrefix(NameResult, BB->getName()); if (Suffix[0]) NameResult += Suffix; |