diff options
author | Eric Christopher <echristo@gmail.com> | 2016-09-16 17:07:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2016-09-16 17:07:23 +0000 |
commit | b0ee4e04b33c9689e8eb6885e6c93e20e06934e0 (patch) | |
tree | 6d775a93b36a2b48a4bf3b1f2293332c365f177b /llvm/lib/Target/XCore | |
parent | dd7d68da584d158bb16210cb80bb66cf3c5829ff (diff) | |
download | bcm5719-llvm-b0ee4e04b33c9689e8eb6885e6c93e20e06934e0.tar.gz bcm5719-llvm-b0ee4e04b33c9689e8eb6885e6c93e20e06934e0.zip |
Actually remove the Mangler from the AsmPrinter and clean up the places it was "used" but not used.
llvm-svn: 281749
Diffstat (limited to 'llvm/lib/Target/XCore')
-rw-r--r-- | llvm/lib/Target/XCore/XCoreAsmPrinter.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/XCore/XCoreMCInstLower.cpp | 7 | ||||
-rw-r--r-- | llvm/lib/Target/XCore/XCoreMCInstLower.h | 3 |
3 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp b/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp index 2c1bbeddedf..2c23600b00a 100644 --- a/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp +++ b/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp @@ -171,7 +171,7 @@ void XCoreAsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) { } void XCoreAsmPrinter::EmitFunctionBodyStart() { - MCInstLowering.Initialize(Mang, &MF->getContext()); + MCInstLowering.Initialize(&MF->getContext()); } /// EmitFunctionBodyEnd - Targets can override this to emit stuff after diff --git a/llvm/lib/Target/XCore/XCoreMCInstLower.cpp b/llvm/lib/Target/XCore/XCoreMCInstLower.cpp index 03c5fa2e9c4..7763ccc8f4a 100644 --- a/llvm/lib/Target/XCore/XCoreMCInstLower.cpp +++ b/llvm/lib/Target/XCore/XCoreMCInstLower.cpp @@ -25,12 +25,9 @@ using namespace llvm; XCoreMCInstLower::XCoreMCInstLower(class AsmPrinter &asmprinter) -: Printer(asmprinter) {} + : Printer(asmprinter) {} -void XCoreMCInstLower::Initialize(Mangler *M, MCContext *C) { - Mang = M; - Ctx = C; -} +void XCoreMCInstLower::Initialize(MCContext *C) { Ctx = C; } MCOperand XCoreMCInstLower::LowerSymbolOperand(const MachineOperand &MO, MachineOperandType MOTy, diff --git a/llvm/lib/Target/XCore/XCoreMCInstLower.h b/llvm/lib/Target/XCore/XCoreMCInstLower.h index 569147872f2..8fb1593cc6e 100644 --- a/llvm/lib/Target/XCore/XCoreMCInstLower.h +++ b/llvm/lib/Target/XCore/XCoreMCInstLower.h @@ -25,11 +25,10 @@ namespace llvm { class LLVM_LIBRARY_VISIBILITY XCoreMCInstLower { typedef MachineOperand::MachineOperandType MachineOperandType; MCContext *Ctx; - Mangler *Mang; AsmPrinter &Printer; public: XCoreMCInstLower(class AsmPrinter &asmprinter); - void Initialize(Mangler *mang, MCContext *C); + void Initialize(MCContext *C); void Lower(const MachineInstr *MI, MCInst &OutMI) const; MCOperand LowerOperand(const MachineOperand& MO, unsigned offset = 0) const; |