X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=inline;f=tools%2Fllvm-mc%2Fllvm-mc.cpp;h=48e2a61af834771f21a83af0c296faf17d812848;hb=916a94b870042772568fca7995cf45aef7a6e333;hp=eb23a1a46712bf7082381fd32118733c508ff07d;hpb=3761c34e03a1220f0cc2ee7df31feeec5ee7e15c;p=oota-llvm.git diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp index eb23a1a4671..48e2a61af83 100644 --- a/tools/llvm-mc/llvm-mc.cpp +++ b/tools/llvm-mc/llvm-mc.cpp @@ -61,6 +61,10 @@ static cl::opt ShowInstOperands("show-inst-operands", cl::desc("Show instructions operands as parsed")); +static cl::opt +DecodeLSDA("decode-lsda", + cl::desc("Print LSDA in human readable format")); + static cl::opt OutputAsmVariant("output-asm-variant", cl::desc("Syntax variant to use for output printing")); @@ -97,7 +101,7 @@ IncludeDirs("I", cl::desc("Directory of include files"), static cl::opt ArchName("arch", cl::desc("Target arch to assemble for, " - "see -version for available targets")); + "see -version for available targets")); static cl::opt TripleName("triple", cl::desc("Target triple to assemble for, " @@ -110,12 +114,11 @@ MCPU("mcpu", cl::init("")); static cl::opt -NoInitialTextSection("n", cl::desc( - "Don't assume assembly file starts in the text section")); +NoInitialTextSection("n", cl::desc("Don't assume assembly file starts " + "in the text section")); static cl::opt -SaveTempLabels("L", cl::desc( - "Don't discard temporary labels")); +SaveTempLabels("L", cl::desc("Don't discard temporary labels")); enum ActionType { AC_AsLex, @@ -358,7 +361,8 @@ static int AssembleInput(const char *ProgName) { Str.reset(TheTarget->createAsmStreamer(Ctx, FOS, /*asmverbose*/true, /*useLoc*/ true, /*useCFI*/ true, IP, CE, TAB, - ShowInst)); + ShowInst, + DecodeLSDA)); } else if (FileType == OFT_Null) { Str.reset(createNullStreamer(Ctx)); } else {