summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZMCInstLower.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-10-29 16:18:15 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-10-29 16:18:15 +0000
commit69c1d631f238c3c99f8ddc5078d08138b4ae33ce (patch)
tree8bb771c1d0842dd759691b44ff4dd6f66f5d9485 /llvm/lib/Target/SystemZ/SystemZMCInstLower.cpp
parent38c2e65e7873088ef7cf2dfdffc5b6fc21f20644 (diff)
downloadbcm5719-llvm-69c1d631f238c3c99f8ddc5078d08138b4ae33ce.tar.gz
bcm5719-llvm-69c1d631f238c3c99f8ddc5078d08138b4ae33ce.zip
The AsmPrinter has a Mangler. Use it.
llvm-svn: 193617
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZMCInstLower.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZMCInstLower.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZMCInstLower.cpp b/llvm/lib/Target/SystemZ/SystemZMCInstLower.cpp
index ebf043e007d..0f46ad29036 100644
--- a/llvm/lib/Target/SystemZ/SystemZMCInstLower.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZMCInstLower.cpp
@@ -26,9 +26,9 @@ static MCSymbolRefExpr::VariantKind getVariantKind(unsigned Flags) {
llvm_unreachable("Unrecognised MO_ACCESS_MODEL");
}
-SystemZMCInstLower::SystemZMCInstLower(Mangler *mang, MCContext &ctx,
+SystemZMCInstLower::SystemZMCInstLower(MCContext &ctx,
SystemZAsmPrinter &asmprinter)
- : Mang(mang), Ctx(ctx), AsmPrinter(asmprinter) {}
+ : Ctx(ctx), AsmPrinter(asmprinter) {}
const MCExpr *
SystemZMCInstLower::getExpr(const MachineOperand &MO,
@@ -42,7 +42,7 @@ SystemZMCInstLower::getExpr(const MachineOperand &MO,
break;
case MachineOperand::MO_GlobalAddress:
- Symbol = Mang->getSymbol(MO.getGlobal());
+ Symbol = AsmPrinter.Mang->getSymbol(MO.getGlobal());
break;
case MachineOperand::MO_ExternalSymbol:
OpenPOWER on IntegriCloud