Use the verbose asm flag instead of a new flag for decoding the LSDA.
authorBill Wendling <isanbard@gmail.com>
Fri, 17 Jun 2011 20:55:01 +0000 (20:55 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 17 Jun 2011 20:55:01 +0000 (20:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133292 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCStreamer.h
include/llvm/Target/TargetRegistry.h
lib/CodeGen/LLVMTargetMachine.cpp
lib/MC/MCAsmStreamer.cpp
lib/Target/PTX/PTXMCAsmStreamer.cpp
lib/Target/PTX/PTXTargetMachine.cpp
tools/llvm-mc/llvm-mc.cpp

index 6f017136c2dc2b7e28b357556f24ad1a40628ba5..69be46bdd5a6a4de17544b99bc21cff2b6b83508 100644 (file)
@@ -557,8 +557,7 @@ namespace llvm {
                                 MCInstPrinter *InstPrint = 0,
                                 MCCodeEmitter *CE = 0,
                                 TargetAsmBackend *TAB = 0,
-                                bool ShowInst = false,
-                                bool DecodeLSDA = false);
+                                bool ShowInst = false);
 
   /// createMachOStreamer - Create a machine code streamer which will generate
   /// Mach-O format object files.
index 0bec8bc1ecf7ef903dda8b6e750c764900d9edee..a464822893ba1115648c1f06b264516b8bb24945 100644 (file)
@@ -47,8 +47,7 @@ namespace llvm {
                                 MCInstPrinter *InstPrint,
                                 MCCodeEmitter *CE,
                                 TargetAsmBackend *TAB,
-                                bool ShowInst,
-                                bool DecodeLSDA);
+                                bool ShowInst);
 
   /// Target - Wrapper for Target specific information.
   ///
@@ -101,8 +100,7 @@ namespace llvm {
                                              MCInstPrinter *InstPrint,
                                              MCCodeEmitter *CE,
                                              TargetAsmBackend *TAB,
-                                             bool ShowInst,
-                                             bool DecodeLSDA);
+                                             bool ShowInst);
 
   private:
     /// Next - The next registered target in the linked list, maintained by the
@@ -336,11 +334,10 @@ namespace llvm {
                                   MCInstPrinter *InstPrint,
                                   MCCodeEmitter *CE,
                                   TargetAsmBackend *TAB,
-                                  bool ShowInst,
-                                  bool DecodeLSDA) const {
+                                  bool ShowInst) const {
       // AsmStreamerCtorFn is default to llvm::createAsmStreamer
       return AsmStreamerCtorFn(Ctx, OS, isVerboseAsm, useLoc, useCFI,
-                               InstPrint, CE, TAB, ShowInst, DecodeLSDA);
+                               InstPrint, CE, TAB, ShowInst);
     }
 
     /// @}
index 4ed959e120e2949799613837161c3a461e2feb1d..b98fbed695b27cf8ac4cc7db6fa54396798d4b62 100644 (file)
@@ -72,8 +72,6 @@ static cl::opt<bool> ShowMCEncoding("show-mc-encoding", cl::Hidden,
     cl::desc("Show encoding in .s output"));
 static cl::opt<bool> ShowMCInst("show-mc-inst", cl::Hidden,
     cl::desc("Show instruction structure in .s output"));
-static cl::opt<bool> DecodeMCLSDA("decode-mc-lsda", cl::Hidden,
-    cl::desc("Print LSDA in human readable format in .s output"));
 static cl::opt<bool> EnableMCLogging("enable-mc-api-logging", cl::Hidden,
     cl::desc("Enable MC API logging"));
 static cl::opt<bool> VerifyMachineCode("verify-machineinstrs", cl::Hidden,
@@ -154,8 +152,7 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
                                                   hasMCUseCFI(),
                                                   InstPrinter,
                                                   MCE, TAB,
-                                                  ShowMCInst,
-                                                  DecodeMCLSDA);
+                                                  ShowMCInst);
     AsmStreamer.reset(S);
     break;
   }
index 01de450d9717eb2719ff22138252c8b56e67e345..f83b91779d90d15a4f63fb37e2961998546813a1 100644 (file)
@@ -1605,8 +1605,8 @@ MCStreamer *llvm::createAsmStreamer(MCContext &Context,
                                     bool isVerboseAsm, bool useLoc,
                                     bool useCFI, MCInstPrinter *IP,
                                     MCCodeEmitter *CE, TargetAsmBackend *TAB,
-                                    bool ShowInst, bool DecodeLSDA) {
-  if (DecodeLSDA)
+                                    bool ShowInst) {
+  if (isVerboseAsm)
     return new MCLSDADecoderAsmStreamer(Context, OS, isVerboseAsm, useLoc,
                                         useCFI, IP, CE, TAB, ShowInst);
 
index bc37b6a1fb23ab9c15e449cca42e7dc8a6ee2ef5..1574670b6e9bd2aae59af0898c8567cdbc43978a 100644 (file)
@@ -533,8 +533,7 @@ namespace llvm {
                                    bool isVerboseAsm, bool useLoc, bool useCFI,
                                    MCInstPrinter *IP,
                                    MCCodeEmitter *CE, TargetAsmBackend *TAB,
-                                   bool ShowInst,
-                                   bool /*DecodeLSDA*/) {
+                                   bool ShowInst) {
     return new PTXMCAsmStreamer(Context, OS, isVerboseAsm, useLoc,
                                 IP, CE, ShowInst);
   }
index 31ed09c3e9c7e7c741de723fce37183cbcdc7fff..1b737c9d86344f129eaf80f64d23e34e1e4911b5 100644 (file)
@@ -27,8 +27,7 @@ namespace llvm {
                                    MCInstPrinter *InstPrint,
                                    MCCodeEmitter *CE,
                                    TargetAsmBackend *TAB,
-                                   bool ShowInst,
-                                   bool DecodeLSDA);
+                                   bool ShowInst);
 }
 
 extern "C" void LLVMInitializePTXTarget() {
index 48e2a61af834771f21a83af0c296faf17d812848..077f0e6700ba0c126d022f101db59e305bca9b85 100644 (file)
@@ -61,10 +61,6 @@ static cl::opt<bool>
 ShowInstOperands("show-inst-operands",
                  cl::desc("Show instructions operands as parsed"));
 
-static cl::opt<bool>
-DecodeLSDA("decode-lsda",
-           cl::desc("Print LSDA in human readable format"));
-
 static cl::opt<unsigned>
 OutputAsmVariant("output-asm-variant",
                  cl::desc("Syntax variant to use for output printing"));
@@ -361,8 +357,7 @@ static int AssembleInput(const char *ProgName) {
     Str.reset(TheTarget->createAsmStreamer(Ctx, FOS, /*asmverbose*/true,
                                            /*useLoc*/ true,
                                            /*useCFI*/ true, IP, CE, TAB,
-                                           ShowInst,
-                                           DecodeLSDA));
+                                           ShowInst));
   } else if (FileType == OFT_Null) {
     Str.reset(createNullStreamer(Ctx));
   } else {