From 0887fa0b8c966234025535d4adcbd5f562a3c0a5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 4 Apr 2010 21:29:44 +0000 Subject: [PATCH] isAbsoluteEHSectionOffsets always returns false, eliminate it 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 | 7 ------- lib/CodeGen/AsmPrinter/DwarfPrinter.cpp | 2 +- lib/MC/MCAsmInfo.cpp | 1 - lib/MC/MCAsmInfoCOFF.cpp | 1 - 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index 4dfe9f0e52e..d190ea4568f 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -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; } diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp index 87224fa6682..b9664190806 100644 --- a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp @@ -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(); diff --git a/lib/MC/MCAsmInfo.cpp b/lib/MC/MCAsmInfo.cpp index c96ff82b308..0306dec363f 100644 --- a/lib/MC/MCAsmInfo.cpp +++ b/lib/MC/MCAsmInfo.cpp @@ -61,7 +61,6 @@ MCAsmInfo::MCAsmInfo() { HiddenVisibilityAttr = MCSA_Hidden; ProtectedVisibilityAttr = MCSA_Protected; AbsoluteDebugSectionOffsets = false; - AbsoluteEHSectionOffsets = false; HasLEB128 = false; HasDotLocAndDotFile = false; SupportsDebugInformation = false; diff --git a/lib/MC/MCAsmInfoCOFF.cpp b/lib/MC/MCAsmInfoCOFF.cpp index 5170206c729..e9bc8fa9c3e 100644 --- a/lib/MC/MCAsmInfoCOFF.cpp +++ b/lib/MC/MCAsmInfoCOFF.cpp @@ -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;