blob: 4612a089c19719b9a2670ebdd4e23cdf9f0ad53d [file] [log] [blame]
Anton Korobeynikov425a9382009-10-21 00:10:30 +00001//===-- MSP430InstPrinter.cpp - Convert MSP430 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 MSP430 MCInst to a .s file.
11//
12//===----------------------------------------------------------------------===//
13
14#define DEBUG_TYPE "asm-printer"
15#include "MSP430InstPrinter.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 "MSP430GenInstrNames.inc"
22using namespace llvm;
23
24
25// Include the auto-generated portion of the assembly writer.
26#define MachineInstr MCInst
27#define MSP430AsmPrinter MSP430InstPrinter // FIXME: REMOVE.
28#define NO_ASM_WRITER_BOILERPLATE
29#include "MSP430GenAsmWriter.inc"
30#undef MachineInstr
31#undef MSP430AsmPrinter
32
33void MSP430InstPrinter::printInst(const MCInst *MI) {
34 printInstruction(MI);
35}