diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-29 16:18:15 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-29 16:18:15 +0000 |
commit | 8eff5d998e88ba8763d72f4e94d7a32f2dbb9005 (patch) | |
tree | 80d11c908ccd075329b2455c88cbc9d9000fc89d /lib/Target/SystemZ/SystemZMCInstLower.cpp | |
parent | d11a4c4ca2f04c8e2d6774519e51786a9bd0b65c (diff) | |
download | llvm-8eff5d998e88ba8763d72f4e94d7a32f2dbb9005.tar.gz llvm-8eff5d998e88ba8763d72f4e94d7a32f2dbb9005.tar.bz2 llvm-8eff5d998e88ba8763d72f4e94d7a32f2dbb9005.tar.xz |
The AsmPrinter has a Mangler. Use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZMCInstLower.cpp')
-rw-r--r-- | lib/Target/SystemZ/SystemZMCInstLower.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/SystemZ/SystemZMCInstLower.cpp b/lib/Target/SystemZ/SystemZMCInstLower.cpp index ebf043e007..0f46ad2903 100644 --- a/lib/Target/SystemZ/SystemZMCInstLower.cpp +++ b/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: |