diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-10-19 19:56:26 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-10-19 19:56:26 +0000 |
| commit | a2907788595fbd2da21fd066c0670af4b08c1215 (patch) | |
| tree | 48878b70d131216002270594cdeb69b0baa8b023 /llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp | |
| parent | 5db7b6a5d40b496e0a0a5eff7ddd49a513dbac3b (diff) | |
| download | bcm5719-llvm-a2907788595fbd2da21fd066c0670af4b08c1215.tar.gz bcm5719-llvm-a2907788595fbd2da21fd066c0670af4b08c1215.zip | |
stub out a minimal ARMInstPrinter.
llvm-svn: 84527
Diffstat (limited to 'llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp')
| -rw-r--r-- | llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp b/llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp new file mode 100644 index 00000000000..6a3759da6eb --- /dev/null +++ b/llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp @@ -0,0 +1,33 @@ +//===-- ARMInstPrinter.cpp - Convert ARM MCInst to assembly syntax --------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class prints an ARM MCInst to a .s file. +// +//===----------------------------------------------------------------------===// + +#define DEBUG_TYPE "asm-printer" +#include "ARMInstPrinter.h" +#include "llvm/MC/MCInst.h" +//#include "llvm/MC/MCAsmInfo.h" +//#include "llvm/MC/MCExpr.h" +//#include "llvm/Support/ErrorHandling.h" +#include "llvm/Support/FormattedStream.h" +#include "ARMGenInstrNames.inc" +using namespace llvm; + +// Include the auto-generated portion of the assembly writer. +#define MachineInstr MCInst +#define ARMAsmPrinter ARMInstPrinter // FIXME: REMOVE. +#define NO_ASM_WRITER_BOILERPLATE +#include "ARMGenAsmWriter.inc" +#undef MachineInstr +#undef ARMAsmPrinter + +void ARMInstPrinter::printInst(const MCInst *MI) { printInstruction(MI); } + |

