diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-07-06 19:45:42 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-06 19:45:42 +0000 |
| commit | ab37af9af3954d253894893ed897690ef6509b8a (patch) | |
| tree | 4ac6f85f45285c6922fe7c97411882bade889067 /llvm/lib/Target/MSP430 | |
| parent | e58f332b8c20c257859b6b236fef23f7e2af2813 (diff) | |
| download | bcm5719-llvm-ab37af9af3954d253894893ed897690ef6509b8a.tar.gz bcm5719-llvm-ab37af9af3954d253894893ed897690ef6509b8a.zip | |
createMCInstPrinter doesn't need TargetMachine anymore.
llvm-svn: 134525
Diffstat (limited to 'llvm/lib/Target/MSP430')
| -rw-r--r-- | llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.h | 3 | ||||
| -rw-r--r-- | llvm/lib/Target/MSP430/MSP430AsmPrinter.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.h b/llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.h index 63860dcc7e3..50d98b7c41f 100644 --- a/llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.h +++ b/llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.h @@ -18,11 +18,10 @@ namespace llvm { class MCOperand; - class TargetMachine; class MSP430InstPrinter : public MCInstPrinter { public: - MSP430InstPrinter(TargetMachine &TM, const MCAsmInfo &MAI) + MSP430InstPrinter(const MCAsmInfo &MAI) : MCInstPrinter(MAI) {} virtual void printInst(const MCInst *MI, raw_ostream &O); diff --git a/llvm/lib/Target/MSP430/MSP430AsmPrinter.cpp b/llvm/lib/Target/MSP430/MSP430AsmPrinter.cpp index 5264d680d8b..a1a7f44c19c 100644 --- a/llvm/lib/Target/MSP430/MSP430AsmPrinter.cpp +++ b/llvm/lib/Target/MSP430/MSP430AsmPrinter.cpp @@ -164,11 +164,10 @@ void MSP430AsmPrinter::EmitInstruction(const MachineInstr *MI) { } static MCInstPrinter *createMSP430MCInstPrinter(const Target &T, - TargetMachine &TM, unsigned SyntaxVariant, const MCAsmInfo &MAI) { if (SyntaxVariant == 0) - return new MSP430InstPrinter(TM, MAI); + return new MSP430InstPrinter(MAI); return 0; } |

