aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-11-28 08:59:52 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-11-28 08:59:52 +0000
commit3e3a3f1f8595a1f4fb6bb1cdb274f12d9b7065d7 (patch)
treecb349c4080395d249229978565f1551efb8974f0 /llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
parent3dfeafd9dbd26b6c8caeab2510edb202020a0abe (diff)
downloadllvm-3e3a3f1f8595a1f4fb6bb1cdb274f12d9b7065d7.zip
llvm-3e3a3f1f8595a1f4fb6bb1cdb274f12d9b7065d7.tar.gz
llvm-3e3a3f1f8595a1f4fb6bb1cdb274f12d9b7065d7.tar.bz2
Use the mangler consistently instead of using getGlobalPrefix directly.
llvm-svn: 195911
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCMCInstLower.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCMCInstLower.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp b/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
index f61c8bf..0907007 100644
--- a/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
+++ b/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
@@ -37,8 +37,7 @@ static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, AsmPrinter &AP){
SmallString<128> Name;
if (!MO.isGlobal()) {
assert(MO.isSymbol() && "Isn't a symbol reference");
- Name += AP.MAI->getGlobalPrefix();
- Name += MO.getSymbolName();
+ AP.Mang->getNameWithPrefix(Name, MO.getSymbolName());
} else {
const GlobalValue *GV = MO.getGlobal();
bool isImplicitlyPrivate = false;