Chris Lattner | fd60382 | 2009-10-19 19:56:26 +0000 | [diff] [blame] | 1 | //===-- ARMInstPrinter.cpp - Convert ARM MCInst to assembly syntax --------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This class prints an ARM MCInst to a .s file. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #define DEBUG_TYPE "asm-printer" |
| 15 | #include "ARMInstPrinter.h" |
| 16 | #include "llvm/MC/MCInst.h" |
| 17 | //#include "llvm/MC/MCAsmInfo.h" |
| 18 | //#include "llvm/MC/MCExpr.h" |
| 19 | //#include "llvm/Support/ErrorHandling.h" |
| 20 | #include "llvm/Support/FormattedStream.h" |
| 21 | #include "ARMGenInstrNames.inc" |
| 22 | using namespace llvm; |
| 23 | |
| 24 | // Include the auto-generated portion of the assembly writer. |
| 25 | #define MachineInstr MCInst |
| 26 | #define ARMAsmPrinter ARMInstPrinter // FIXME: REMOVE. |
| 27 | #define NO_ASM_WRITER_BOILERPLATE |
| 28 | #include "ARMGenAsmWriter.inc" |
| 29 | #undef MachineInstr |
| 30 | #undef ARMAsmPrinter |
| 31 | |
| 32 | void ARMInstPrinter::printInst(const MCInst *MI) { printInstruction(MI); } |
| 33 | |