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 | 2b630fe82229b1ac8346a8ffb69c693804fc298b (patch) | |
tree | dff218054737929d131852fde9bc7a419a9655bd /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 1126534dce16693b7ae04847e819c99830dc25a0 (diff) | |
download | bcm5719-llvm-2b630fe82229b1ac8346a8ffb69c693804fc298b.tar.gz bcm5719-llvm-2b630fe82229b1ac8346a8ffb69c693804fc298b.zip |
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.
llvm-svn: 93302
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index b1957bb0da2..64f49c46922 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/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; |