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 | 6b71653c82f86626f64356c308d7356a17b05834 (patch) | |
tree | 2797a04404de4fceb2a7ab61eec5ccbc30ff06a5 /tools | |
parent | 869fe12cc0769ab5005498bab942e85a6f5e3798 (diff) | |
download | external_llvm-6b71653c82f86626f64356c308d7356a17b05834.zip external_llvm-6b71653c82f86626f64356c308d7356a17b05834.tar.gz external_llvm-6b71653c82f86626f64356c308d7356a17b05834.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')
-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)); |