diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-02-09 23:00:14 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-09 23:00:14 +0000 |
commit | f4a8468ca93e57681101456b113111d5c9ec910e (patch) | |
tree | 2797a04404de4fceb2a7ab61eec5ccbc30ff06a5 /tools/llvm-mc | |
parent | 47aedbeb63a4d90f8ee9dec4aa91d64594c2625e (diff) | |
download | external_llvm-f4a8468ca93e57681101456b113111d5c9ec910e.zip external_llvm-f4a8468ca93e57681101456b113111d5c9ec910e.tar.gz external_llvm-f4a8468ca93e57681101456b113111d5c9ec910e.tar.bz2 |
llvm-mc: Add --show-fixups option, for displaying the instruction fixup information in the asm comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc')
-rw-r--r-- | tools/llvm-mc/llvm-mc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp index c05bd52..250d4dc 100644 --- a/tools/llvm-mc/llvm-mc.cpp +++ b/tools/llvm-mc/llvm-mc.cpp @@ -47,6 +47,9 @@ static cl::opt<bool> ShowEncoding("show-encoding", cl::desc("Show instruction encodings")); static cl::opt<bool> +ShowFixups("show-fixups", cl::desc("Show fixups inside encodings")); + +static cl::opt<bool> ShowInst("show-inst", cl::desc("Show internal instruction representation")); static cl::opt<unsigned> @@ -270,7 +273,7 @@ static int AssembleInput(const char *ProgName) { Str.reset(createAsmStreamer(Ctx, *Out, *MAI, TM->getTargetData()->isLittleEndian(), /*asmverbose*/true, IP.get(), CE.get(), - ShowInst)); + ShowInst, ShowFixups)); } else { assert(FileType == OFT_ObjectFile && "Invalid file type!"); CE.reset(TheTarget->createCodeEmitter(*TM)); |