aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCStreamer.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-02-03 18:18:30 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-02-03 18:18:30 +0000
commit9dee8e3009408fd08c656558397a8ac8604139ba (patch)
tree2aaa0008a2e4465f77b61deaa8083d5adc0d422c /include/llvm/MC/MCStreamer.h
parent523e3928a340dfd6645b4fc8e861c2d883728227 (diff)
downloadexternal_llvm-9dee8e3009408fd08c656558397a8ac8604139ba.zip
external_llvm-9dee8e3009408fd08c656558397a8ac8604139ba.tar.gz
external_llvm-9dee8e3009408fd08c656558397a8ac8604139ba.tar.bz2
llvm-mc: Add --show-inst option, for showing the MCInst inline with the assembly
output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCStreamer.h')
-rw-r--r--include/llvm/MC/MCStreamer.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h
index cfd4572..624d9a6 100644
--- a/include/llvm/MC/MCStreamer.h
+++ b/include/llvm/MC/MCStreamer.h
@@ -269,11 +269,21 @@ namespace llvm {
/// createAsmStreamer - Create a machine code streamer which will print out
/// assembly for the native target, suitable for compiling with a native
/// assembler.
+ ///
+ /// \param InstPrint - If given, the instruction printer to use. If not given
+ /// the MCInst representation will be printed.
+ ///
+ /// \param CE - If given, a code emitter to use to show the instruction
+ /// encoding inline with the assembly.
+ ///
+ /// \param ShowInst - Whether to show the MCInst representation inline with
+ /// the assembly.
MCStreamer *createAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
const MCAsmInfo &MAI, bool isLittleEndian,
bool isVerboseAsm,
MCInstPrinter *InstPrint = 0,
- MCCodeEmitter *CE = 0);
+ MCCodeEmitter *CE = 0,
+ bool ShowInst = false);
// FIXME: These two may end up getting rolled into a single
// createObjectStreamer interface, which implements the assembler backend, and