Linux also does not require exception handling
authorDuncan Sands <baldrick@free.fr>
Fri, 4 Jul 2008 09:55:48 +0000 (09:55 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 4 Jul 2008 09:55:48 +0000 (09:55 +0000)
moves in order to get correct debug info.  Since
I can't imagine how any target could possibly
be any different, I've just stripped out the
option: now all the world's like Darwin!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53134 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetAsmInfo.h
lib/CodeGen/DwarfWriter.cpp
lib/Target/PowerPC/PPCTargetAsmInfo.cpp
lib/Target/TargetAsmInfo.cpp
lib/Target/X86/X86TargetAsmInfo.cpp

index aada8ff937c5080d2c96915d70cd38a100a91dee..bf4fd103383b4458a92d14c2ba9a81603d0987b2 100644 (file)
@@ -413,11 +413,6 @@ namespace llvm {
     ///
     const char *DwarfExceptionSection; // Defaults to ".gcc_except_table".
 
-    /// DebugInfoRequireFrameMoveInfo - Does debugging info require frame move
-    /// info.
-    ///
-    bool DebugInfoRequireFrameMoveInfo; // Defaults to "true"
-
     //===--- CBE Asm Translation Table -----------------------------------===//
 
     const char *const *AsmTransCBE; // Defaults to empty
@@ -703,9 +698,6 @@ namespace llvm {
     const char *getDwarfExceptionSection() const {
       return DwarfExceptionSection;
     }
-    bool doesDebugInfoRequireFrameMoveInfo() const {
-      return DebugInfoRequireFrameMoveInfo;
-    }
     const char *const *getAsmCBE() const {
       return AsmTransCBE;
     }
index 2d0a1142027adef150bfa0a1fccec8e900ce4e72..cf46413e7085fb572d2879c80e5b293ae45f91cc 100644 (file)
@@ -3512,9 +3512,7 @@ public:
         shouldEmitTable = true;
 
       // See if we need frame move info.
-      if ((MMI->hasDebugInfo() && TAI->doesDebugInfoRequireFrameMoveInfo()) || 
-          !MF->getFunction()->doesNotThrow() ||
-          UnwindTablesMandatory)
+      if (!MF->getFunction()->doesNotThrow() || UnwindTablesMandatory)
         shouldEmitMoves = true;
 
       if (shouldEmitMoves || shouldEmitTable)
index 00e1aabdd12e98b2ba6d5d4b3c1d1d4594b1a742..058de655efa6c7040a2feb15f7b91511b72b1703 100644 (file)
@@ -66,7 +66,6 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const PPCTargetMachine &TM)
   DwarfEHFrameSection =
   ".section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support";
   DwarfExceptionSection = ".section __DATA,__gcc_except_tab";
-  DebugInfoRequireFrameMoveInfo = false;
   GlobalEHDirective = "\t.globl\t";
   SupportsWeakOmittedEHFrame = false;
 
index 8caff91e6029095473da5c61a2946aa93365ccfe..2adad3d7baa654f5e2fa81c735f5cf7ebbdd48b0 100644 (file)
@@ -111,7 +111,6 @@ TargetAsmInfo::TargetAsmInfo() :
   DwarfMacInfoSection(".debug_macinfo"),
   DwarfEHFrameSection(".eh_frame"),
   DwarfExceptionSection(".gcc_except_table"),
-  DebugInfoRequireFrameMoveInfo(true),
   AsmTransCBE(0) {
 }
 
index d0b3b818f1e053f9ff55e632dbf996753f7265b6..887c13dcc767866ee5789621d0b0173d2ea44315 100644 (file)
@@ -124,7 +124,6 @@ X86TargetAsmInfo::X86TargetAsmInfo(const X86TargetMachine &TM) {
     DwarfEHFrameSection =
     ".section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support";
     DwarfExceptionSection = ".section __DATA,__gcc_except_tab";
-    DebugInfoRequireFrameMoveInfo = false;
     break;
 
   case X86Subtarget::isELF: