From 3c14ca47fc057c5999cd41ce2782e0ebaa2bcf7d Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 11 Aug 2010 06:37:09 +0000 Subject: llvm-mc: Add -show-inst-operands, for dumping the parsed instruction representation before matching. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110791 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-mc/llvm-mc.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/llvm-mc') diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp index 33531f18be..94b11ebe64 100644 --- a/tools/llvm-mc/llvm-mc.cpp +++ b/tools/llvm-mc/llvm-mc.cpp @@ -51,6 +51,10 @@ ShowEncoding("show-encoding", cl::desc("Show instruction encodings")); static cl::opt ShowInst("show-inst", cl::desc("Show internal instruction representation")); +static cl::opt +ShowInstOperands("show-inst-operands", + cl::desc("Show instructions operands as parsed")); + static cl::opt OutputAsmVariant("output-asm-variant", cl::desc("Syntax variant to use for output printing")); @@ -320,6 +324,7 @@ static int AssembleInput(const char *ProgName) { return 1; } + Parser->setShowParsedOperands(ShowInstOperands); Parser->setTargetParser(*TAP.get()); int Res = Parser->Run(NoInitialTextSection); -- cgit v1.2.3