summaryrefslogtreecommitdiffstats
path: root/llvm/include
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
commite3ee332fe090b86910fbf59496788878b93cff38 (patch)
tree1554e909f8857472ad0d634547680b26d177d2e8 /llvm/include
parentb247350ef7dde892dcdd047a9077f78b6bc783d1 (diff)
downloadbcm5719-llvm-e3ee332fe090b86910fbf59496788878b93cff38.tar.gz
bcm5719-llvm-e3ee332fe090b86910fbf59496788878b93cff38.zip
llvm-mc: Add --show-inst option, for showing the MCInst inline with the assembly
output. llvm-svn: 95227
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/MC/MCStreamer.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/MCStreamer.h b/llvm/include/llvm/MC/MCStreamer.h
index cfd457261ff..624d9a6c06b 100644
--- a/llvm/include/llvm/MC/MCStreamer.h
+++ b/llvm/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
OpenPOWER on IntegriCloud