aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-14 03:43:57 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-14 03:43:57 +0000
commit575327b77e9092074e5d18bfebfb78ce550aa2a3 (patch)
tree846c8f2372e3debe166e4ef1e0941094a43cf9fc /include/llvm/CodeGen
parent61466c50df9d00c4a07b1fd72536399cfb418ebd (diff)
Add virtual printMCInst method to AsmPrinter, as a quick way to expose the API
to print one instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index ff5a7763dd..efbcef1b81 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -345,6 +345,12 @@ namespace llvm {
/// EmitComments - Pretty-print comments for basic blocks
void EmitComments(const MachineBasicBlock &MBB) const;
+ /// printMCInst - Print an MCInst for this target.
+ ///
+ /// Note, this is only a temporary hack to allow the MCStreamer to print
+ /// instructions, do not use this function outside of llvm-mc.
+ virtual void printMCInst(const MCInst *MI);
+
protected:
/// EmitZeros - Emit a block of zeros.
///