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 | 9a0a46163d70143fd55216a9a51f8d2af7e79827 (patch) | |
tree | f55b8ce609dab6bb9c99cd1bddcd492f4275569a /llvm/tools/llvm-mc/llvm-mc.cpp | |
parent | 0e42dc0dacbbc2f59d40ec8d06b8c5630075f3d8 (diff) | |
download | bcm5719-llvm-9a0a46163d70143fd55216a9a51f8d2af7e79827.tar.gz bcm5719-llvm-9a0a46163d70143fd55216a9a51f8d2af7e79827.zip |
llvm-mc: Add --show-fixups option, for displaying the instruction fixup information in the asm comments.
llvm-svn: 95710
Diffstat (limited to 'llvm/tools/llvm-mc/llvm-mc.cpp')
-rw-r--r-- | llvm/tools/llvm-mc/llvm-mc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mc/llvm-mc.cpp b/llvm/tools/llvm-mc/llvm-mc.cpp index c05bd522c52..250d4dc22fd 100644 --- a/llvm/tools/llvm-mc/llvm-mc.cpp +++ b/llvm/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)); |