isAbsoluteEHSectionOffsets always returns false, eliminate it
authorChris Lattner <sabre@nondot.org>
Sun, 4 Apr 2010 21:29:44 +0000 (21:29 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 4 Apr 2010 21:29:44 +0000 (21:29 +0000)
and substitute false at the one call site.

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

include/llvm/MC/MCAsmInfo.h
lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
lib/MC/MCAsmInfo.cpp
lib/MC/MCAsmInfoCOFF.cpp

index 4dfe9f0e52eb940660dfcccbfee40deadcfc166a..d190ea4568f00e4687333cf0a84b9bee2d257afe 100644 (file)
@@ -227,10 +227,6 @@ namespace llvm {
     /// offsets for debug information.
     bool AbsoluteDebugSectionOffsets;        // Defaults to false.
 
-    /// AbsoluteEHSectionOffsets - True if we should emit abolute section
-    /// offsets for EH information. Defaults to false.
-    bool AbsoluteEHSectionOffsets;
-
     /// HasLEB128 - True if target asm supports leb128 directives.
     bool HasLEB128;                          // Defaults to false.
 
@@ -392,9 +388,6 @@ namespace llvm {
     bool isAbsoluteDebugSectionOffsets() const {
       return AbsoluteDebugSectionOffsets;
     }
-    bool isAbsoluteEHSectionOffsets() const {
-      return AbsoluteEHSectionOffsets;
-    }
     bool hasLEB128() const {
       return HasLEB128;
     }
index 87224fa6682f5e711df191ca8123df203b5db564..b9664190806b345b2ca8753f7662e559ea57a4e9 100644 (file)
@@ -43,7 +43,7 @@ void DwarfPrinter::EmitSectionOffset(const MCSymbol *Label,
                                      bool IsSmall, bool isEH) {
   bool isAbsolute;
   if (isEH)
-    isAbsolute = MAI->isAbsoluteEHSectionOffsets();
+    isAbsolute = false;
   else
     isAbsolute = MAI->isAbsoluteDebugSectionOffsets();
 
index c96ff82b308d0b5de353acea3e39ed82da73a180..0306dec363f6978273722ee679757a32a977fbc7 100644 (file)
@@ -61,7 +61,6 @@ MCAsmInfo::MCAsmInfo() {
   HiddenVisibilityAttr = MCSA_Hidden;
   ProtectedVisibilityAttr = MCSA_Protected;
   AbsoluteDebugSectionOffsets = false;
-  AbsoluteEHSectionOffsets = false;
   HasLEB128 = false;
   HasDotLocAndDotFile = false;
   SupportsDebugInformation = false;
index 5170206c729b54613895e72bd9c349045434b528..e9bc8fa9c3e47ea086bd46f09958d31c88cde03e 100644 (file)
@@ -32,7 +32,6 @@ MCAsmInfoCOFF::MCAsmInfoCOFF() {
   // Set up DWARF directives
   HasLEB128 = true;  // Target asm supports leb128 directives (little-endian)
   AbsoluteDebugSectionOffsets = true;
-  AbsoluteEHSectionOffsets = false;
   SupportsDebugInformation = true;
   DwarfSectionOffsetDirective = "\t.secrel32\t";
   HasMicrosoftFastStdCallMangling = true;