blob: 81a939ffaaef3156fc30132b1b241b6d19bc3163 [file] [log] [blame]
Chris Lattner65b0b292009-09-14 01:43:38 +00001//===-- MCInstPrinter.cpp - Convert an MCInst to target 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#include "llvm/MC/MCInstPrinter.h"
Chris Lattner7e851802010-02-11 22:39:10 +000011#include "llvm/ADT/StringRef.h"
Chris Lattner65b0b292009-09-14 01:43:38 +000012using namespace llvm;
13
14MCInstPrinter::~MCInstPrinter() {
Edward O'Callaghanaa5c1b72009-10-05 18:43:19 +000015}
Chris Lattner7e851802010-02-11 22:39:10 +000016
17/// getOpcodeName - Return the name of the specified opcode enum (e.g.
18/// "MOV32ri") or empty if we can't resolve it.
19StringRef MCInstPrinter::getOpcodeName(unsigned Opcode) const {
20 return "";
21}
Anton Korobeynikov57caad72011-03-05 18:43:32 +000022
Rafael Espindolacde4ce42011-06-02 02:34:55 +000023void MCInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const {
Anton Korobeynikov57caad72011-03-05 18:43:32 +000024 assert(0 && "Target should implement this");
Anton Korobeynikov57caad72011-03-05 18:43:32 +000025}