diff options
| author | Jim Grosbach <grosbach@apple.com> | 2010-09-30 23:40:25 +0000 |
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2010-09-30 23:40:25 +0000 |
| commit | ddcf859851a5407575cc4c75fd70fc52c0e36d54 (patch) | |
| tree | cf1db051fbfeba7c2a75a6b7fdf33f9114dcddff /lib/Target/MSP430 | |
| parent | 086378597df590e6401abf90d0b5edb09bbaa297 (diff) | |
| download | external_llvm-ddcf859851a5407575cc4c75fd70fc52c0e36d54.zip external_llvm-ddcf859851a5407575cc4c75fd70fc52c0e36d54.tar.gz external_llvm-ddcf859851a5407575cc4c75fd70fc52c0e36d54.tar.bz2 | |
Clean up asm writer usage for x86 and msp430 to flag that the writer should
use MC instructions in the printInstruction() method via the tablegen flag
for it rather than a #define prior to including the autogenerated bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430')
| -rw-r--r-- | lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp | 2 | ||||
| -rw-r--r-- | lib/Target/MSP430/MSP430.td | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp b/lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp index c15d408..304e677 100644 --- a/lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp +++ b/lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp @@ -24,9 +24,7 @@ using namespace llvm; // Include the auto-generated portion of the assembly writer. -#define MachineInstr MCInst #include "MSP430GenAsmWriter.inc" -#undef MachineInstr void MSP430InstPrinter::printInst(const MCInst *MI, raw_ostream &O) { printInstruction(MI, O); diff --git a/lib/Target/MSP430/MSP430.td b/lib/Target/MSP430/MSP430.td index 0f08e3d..5cc5e6e 100644 --- a/lib/Target/MSP430/MSP430.td +++ b/lib/Target/MSP430/MSP430.td @@ -52,6 +52,7 @@ def MSP430InstrInfo : InstrInfo; def MSP430InstPrinter : AsmWriter { string AsmWriterClassName = "InstPrinter"; + bit isMCAsmWriter = 1; } //===----------------------------------------------------------------------===// |
