MCInstPrinter.h revision 65b0b297db16252835ab4d78f33578baa3ace28a
1//===-- MCInstPrinter.h - 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#ifndef LLVM_MC_MCINSTPRINTER_H 11#define LLVM_MC_MCINSTPRINTER_H 12 13namespace llvm { 14class MCInst; 15class raw_ostream; 16 17/// MCInstPrinter - This is an instance of a target assembly language printer 18/// that converts an MCInst to valid target assembly syntax. 19class MCInstPrinter { 20 raw_ostream &O; 21public: 22 MCInstPrinter(raw_ostream &o) : O(o) {} 23 24 virtual ~MCInstPrinter(); 25 26 /// printInst - Print the specified MCInst to the current raw_ostream. 27 /// 28 virtual void printInst(const MCInst *MI) = 0; 29}; 30 31} // namespace llvm 32 33#endif 34