[llvm-commits] [llvm] r52994 - in /llvm/trunk: include/llvm/Target/TargetAsmInfo.h lib/CodeGen/DwarfWriter.cpp lib/Target/PowerPC/PPCTargetAsmInfo.cpp lib/Target/TargetAsmInfo.cpp lib/Target/X86/X86TargetAsmInfo.cpp

Bill Wendling isanbard at gmail.com
Tue Jul 1 16:34:49 PDT 2008


Author: void
Date: Tue Jul  1 18:34:48 2008
New Revision: 52994

URL: http://llvm.org/viewvc/llvm-project?rev=52994&view=rev
Log:
Darwin doesn't need exception handling information for the "move" info when
debug information is being output, because it's leet!

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

Modified: llvm/trunk/include/llvm/Target/TargetAsmInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetAsmInfo.h?rev=52994&r1=52993&r2=52994&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Target/TargetAsmInfo.h (original)
+++ llvm/trunk/include/llvm/Target/TargetAsmInfo.h Tue Jul  1 18:34:48 2008
@@ -412,7 +412,11 @@
     /// DwarfExceptionSection - Section directive for Exception table.
     ///
     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 -----------------------------------===//
 
@@ -699,6 +703,9 @@
     const char *getDwarfExceptionSection() const {
       return DwarfExceptionSection;
     }
+    bool doesDebugInfoRequireFrameMoveInfo() const {
+      return DebugInfoRequireFrameMoveInfo;
+    }
     const char *const *getAsmCBE() const {
       return AsmTransCBE;
     }

Modified: llvm/trunk/lib/CodeGen/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DwarfWriter.cpp?rev=52994&r1=52993&r2=52994&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/DwarfWriter.cpp Tue Jul  1 18:34:48 2008
@@ -827,7 +827,7 @@
   ///
   AsmPrinter *Asm;
   
-  /// TAI - Target Asm Printer.
+  /// TAI - Target asm information.
   const TargetAsmInfo *TAI;
   
   /// TD - Target data.
@@ -3511,7 +3511,7 @@
         shouldEmitTable = true;
 
       // See if we need frame move info.
-      if (MMI->hasDebugInfo() || 
+      if ((MMI->hasDebugInfo() && TAI->doesDebugInfoRequireFrameMoveInfo()) || 
           !MF->getFunction()->doesNotThrow() ||
           UnwindTablesMandatory)
         shouldEmitMoves = true;

Modified: llvm/trunk/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCTargetAsmInfo.cpp?rev=52994&r1=52993&r2=52994&view=diff

==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCTargetAsmInfo.cpp Tue Jul  1 18:34:48 2008
@@ -66,6 +66,7 @@
   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;
 

Modified: llvm/trunk/lib/Target/TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetAsmInfo.cpp?rev=52994&r1=52993&r2=52994&view=diff

==============================================================================
--- llvm/trunk/lib/Target/TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetAsmInfo.cpp Tue Jul  1 18:34:48 2008
@@ -111,6 +111,7 @@
   DwarfMacInfoSection(".debug_macinfo"),
   DwarfEHFrameSection(".eh_frame"),
   DwarfExceptionSection(".gcc_except_table"),
+  DebugInfoRequireFrameMoveInfo(true),
   AsmTransCBE(0) {
 }
 

Modified: llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp?rev=52994&r1=52993&r2=52994&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp Tue Jul  1 18:34:48 2008
@@ -124,6 +124,7 @@
     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:





More information about the llvm-commits mailing list