Revert r61415 and r61484. Duncan was correct that these weren't needed.
authorBill Wendling <isanbard@gmail.com>
Mon, 5 Jan 2009 22:53:45 +0000 (22:53 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 5 Jan 2009 22:53:45 +0000 (22:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61765 91177308-0d34-0410-b5e6-96231b3b80d8

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

index c880179038d732bf6f5e32be86edf3ca96dfa75a..0de74103adcf1a4577ccd5ef477e4132a2134942 100644 (file)
@@ -448,20 +448,10 @@ namespace llvm {
     ///
     bool DwarfRequiresFrameSection; // Defaults to true.
 
-    /// FDEEncodingRequiresSData4 - If set, the FDE Encoding in the EH section
-    /// includes DW_EH_PE_sdata4.
-    /// 
-    bool FDEEncodingRequiresSData4;         // Defaults to true
-
     /// NonLocalEHFrameLabel - If set, the EH_frame label needs to be non-local.
     /// 
     bool NonLocalEHFrameLabel;              // Defaults to false.
 
-    /// Force32BitFDEReference - Force the FDE initial location and address
-    /// range to be 32-bit sized.
-    ///
-    bool Force32BitFDEReference;            // Defaults to true.
-
     /// GlobalEHDirective - This is the directive used to make exception frame
     /// tables globally visible.
     ///
@@ -828,15 +818,9 @@ namespace llvm {
     bool doesDwarfRequireFrameSection() const {
       return DwarfRequiresFrameSection;
     }
-    bool doesFDEEncodingRequireSData4() const {
-      return FDEEncodingRequiresSData4;
-    }
     bool doesRequireNonLocalEHFrameLabel() const {
       return NonLocalEHFrameLabel;
     }
-    bool doesRequire32BitFDEReference() const {
-      return Force32BitFDEReference;
-    }
     const char *getGlobalEHDirective() const {
       return GlobalEHDirective;
     }
index d5ae56efeb7bde95c297f7ba676f039c714d016a..92a068b2c4551d7b7dd3df8dacc4accd342358f2 100644 (file)
@@ -3410,24 +3410,14 @@ private:
       Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);
       Asm->EOL("LSDA Encoding (pcrel sdata4)");
 
-      if (TAI->doesFDEEncodingRequireSData4()) {
-        Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);
-        Asm->EOL("FDE Encoding (pcrel sdata4)");
-      } else {
-        Asm->EmitInt8(DW_EH_PE_pcrel);
-        Asm->EOL("FDE Encoding (pcrel)");
-      }
+      Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);
+      Asm->EOL("FDE Encoding (pcrel sdata4)");
    } else {
       Asm->EmitULEB128Bytes(1);
       Asm->EOL("Augmentation Size");
 
-      if (TAI->doesFDEEncodingRequireSData4()) {
-        Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);
-        Asm->EOL("FDE Encoding (pcrel sdata4)");
-      } else {
-        Asm->EmitInt8(DW_EH_PE_pcrel);
-        Asm->EOL("FDE Encoding (pcrel)");
-      }
+      Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);
+      Asm->EOL("FDE Encoding (pcrel sdata4)");
     }
 
     // Indicate locations of general callee saved registers in frame.
@@ -3508,12 +3498,10 @@ private:
 
       Asm->EOL("FDE CIE offset");
 
-      EmitReference("eh_func_begin", EHFrameInfo.Number, true, 
-                    TAI->doesRequire32BitFDEReference());
+      EmitReference("eh_func_begin", EHFrameInfo.Number, true);
       Asm->EOL("FDE initial location");
       EmitDifference("eh_func_end", EHFrameInfo.Number,
-                     "eh_func_begin", EHFrameInfo.Number,
-                     TAI->doesRequire32BitFDEReference());
+                     "eh_func_begin", EHFrameInfo.Number);
       Asm->EOL("FDE address range");
 
       // If there is a personality and landing pads then point to the language
index 0cf969cf3a834ab694aa98dc7d09e5182528e9bb..532b8b9a5bbf9d0db5a4f579881604dd30bfc1cf 100644 (file)
@@ -99,9 +99,7 @@ void TargetAsmInfo::fillDefaultValues() {
   SupportsDebugInformation = false;
   SupportsExceptionHandling = false;
   DwarfRequiresFrameSection = true;
-  FDEEncodingRequiresSData4 = true;
   NonLocalEHFrameLabel = false;
-  Force32BitFDEReference = true;
   GlobalEHDirective = 0;
   SupportsWeakOmittedEHFrame = true;
   DwarfSectionOffsetDirective = 0;
index 1cf859b3b88c6c0ef182c8d275e231bfa8e75113..e21596cd91604e916fd4cfff2190a4b08f2a3f1f 100644 (file)
@@ -70,9 +70,7 @@ X86DarwinTargetAsmInfo::X86DarwinTargetAsmInfo(const X86TargetMachine &TM):
   COMMDirectiveTakesAlignment = (Subtarget->getDarwinVers() >= 9);
   HasDotTypeDotSizeDirective = false;
   HasSingleParameterDotFile = false;
-  FDEEncodingRequiresSData4 = false;
   NonLocalEHFrameLabel = true;
-  Force32BitFDEReference = false;
   if (TM.getRelocationModel() == Reloc::Static) {
     StaticCtorsSection = ".constructor";
     StaticDtorsSection = ".destructor";