[llvm-commits] CVS: llvm/include/llvm/Target/TargetAsmInfo.h

Anton Korobeynikov asl at math.spbu.ru
Tue Mar 6 18:48:20 PST 2007



Changes in directory llvm/include/llvm/Target:

TargetAsmInfo.h updated: 1.26 -> 1.27
---
Log message:

Fix DWARF debugging information on x86/Linux and (hopefully) 
Mingw32/Cygwin targets. This fixes PR978: http://llvm.org/PR978 


---
Diffs of the changes:  (+13 -0)

 TargetAsmInfo.h |   13 +++++++++++++
 1 files changed, 13 insertions(+)


Index: llvm/include/llvm/Target/TargetAsmInfo.h
diff -u llvm/include/llvm/Target/TargetAsmInfo.h:1.26 llvm/include/llvm/Target/TargetAsmInfo.h:1.27
--- llvm/include/llvm/Target/TargetAsmInfo.h:1.26	Wed Feb 21 16:43:40 2007
+++ llvm/include/llvm/Target/TargetAsmInfo.h	Tue Mar  6 20:47:57 2007
@@ -246,6 +246,10 @@
     
     //===--- Dwarf Emission Directives -----------------------------------===//
 
+    /// AbsoluteSectionOffsets - True if we should emit abolute section
+    /// offsets. Defaults to false.
+    bool AbsoluteSectionOffsets;
+    
     /// HasLEB128 - True if target asm supports leb128 directives.
     ///
     bool HasLEB128; // Defaults to false.
@@ -266,6 +270,9 @@
     ///
     bool DwarfRequiresFrameSection; // Defaults to true.
 
+    /// DwarfSectionOffsetDirective - Special section offset directive.
+    const char* DwarfSectionOffsetDirective; // Defaults to NULL
+    
     /// DwarfAbbrevSection - Section directive for Dwarf abbrev.
     ///
     const char *DwarfAbbrevSection; // Defaults to ".debug_abbrev".
@@ -494,6 +501,9 @@
     const char *getHiddenDirective() const {
       return HiddenDirective;
     }
+    bool isAbsoluteSectionOffsets() const {
+      return AbsoluteSectionOffsets;
+    }
     bool hasLEB128() const {
       return HasLEB128;
     }
@@ -509,6 +519,9 @@
     bool getDwarfRequiresFrameSection() const {
       return DwarfRequiresFrameSection;
     }
+    const char *getDwarfSectionOffsetDirective() const {
+      return DwarfSectionOffsetDirective;
+    }    
     const char *getDwarfAbbrevSection() const {
       return DwarfAbbrevSection;
     }






More information about the llvm-commits mailing list