diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-08-11 06:37:09 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-08-11 06:37:09 +0000 |
| commit | 2eca0252c358c778f3b133667e74ba808cbd41ce (patch) | |
| tree | 23d23ecc1319cd02851d8fa39901973d5a167a43 /llvm/tools | |
| parent | ebace2248f2eddeb67b5c8005b10664cdc81469d (diff) | |
| download | bcm5719-llvm-2eca0252c358c778f3b133667e74ba808cbd41ce.tar.gz bcm5719-llvm-2eca0252c358c778f3b133667e74ba808cbd41ce.zip | |
llvm-mc: Add -show-inst-operands, for dumping the parsed instruction representation before matching.
llvm-svn: 110791
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/llvm-mc/llvm-mc.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/tools/llvm-mc/llvm-mc.cpp b/llvm/tools/llvm-mc/llvm-mc.cpp index 33531f18be1..94b11ebe64c 100644 --- a/llvm/tools/llvm-mc/llvm-mc.cpp +++ b/llvm/tools/llvm-mc/llvm-mc.cpp @@ -51,6 +51,10 @@ ShowEncoding("show-encoding", cl::desc("Show instruction encodings")); static cl::opt<bool> ShowInst("show-inst", cl::desc("Show internal instruction representation")); +static cl::opt<bool> +ShowInstOperands("show-inst-operands", + cl::desc("Show instructions operands as parsed")); + static cl::opt<unsigned> 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); |

