//===- lib/MC/MCInst.cpp - MCInst implementation --------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #include "llvm/MC/MCInst.h" #include "llvm/MC/MCExpr.h" #include "llvm/MC/MCInstPrinter.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; void MCOperand::print(raw_ostream &OS, const MCAsmInfo *MAI) const { OS << ""; } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) void MCOperand::dump() const { print(dbgs(), 0); dbgs() << "\n"; } #endif void MCInst::print(raw_ostream &OS, const MCAsmInfo *MAI) const { OS << ""; } void MCInst::dump_pretty(raw_ostream &OS, const MCAsmInfo *MAI, const MCInstPrinter *Printer, StringRef Separator) const { OS << "getOpcodeName(getOpcode()); for (unsigned i = 0, e = getNumOperands(); i != e; ++i) { OS << Separator; getOperand(i).print(OS, MAI); } OS << ">"; } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) void MCInst::dump() const { print(dbgs(), 0); dbgs() << "\n"; } #endif