MCInstPrinter.cpp revision 57caad7a33ff145b71545f10dcfbbf2fd0f595d3
1//===-- 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" 11#include "llvm/ADT/StringRef.h" 12using namespace llvm; 13 14MCInstPrinter::~MCInstPrinter() { 15} 16 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} 22 23StringRef MCInstPrinter::getRegName(unsigned RegNo) const { 24 assert(0 && "Target should implement this"); 25 return ""; 26} 27