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
This commit is contained in:
Chris Lattner 2010-04-04 21:29:44 +00:00
parent e0103f03f0
commit 0887fa0b8c
4 changed files with 1 additions and 10 deletions

View File

@ -227,10 +227,6 @@ namespace llvm {
/// offsets for debug information. /// offsets for debug information.
bool AbsoluteDebugSectionOffsets; // Defaults to false. 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. /// HasLEB128 - True if target asm supports leb128 directives.
bool HasLEB128; // Defaults to false. bool HasLEB128; // Defaults to false.
@ -392,9 +388,6 @@ namespace llvm {
bool isAbsoluteDebugSectionOffsets() const { bool isAbsoluteDebugSectionOffsets() const {
return AbsoluteDebugSectionOffsets; return AbsoluteDebugSectionOffsets;
} }
bool isAbsoluteEHSectionOffsets() const {
return AbsoluteEHSectionOffsets;
}
bool hasLEB128() const { bool hasLEB128() const {
return HasLEB128; return HasLEB128;
} }

View File

@ -43,7 +43,7 @@ void DwarfPrinter::EmitSectionOffset(const MCSymbol *Label,
bool IsSmall, bool isEH) { bool IsSmall, bool isEH) {
bool isAbsolute; bool isAbsolute;
if (isEH) if (isEH)
isAbsolute = MAI->isAbsoluteEHSectionOffsets(); isAbsolute = false;
else else
isAbsolute = MAI->isAbsoluteDebugSectionOffsets(); isAbsolute = MAI->isAbsoluteDebugSectionOffsets();

View File

@ -61,7 +61,6 @@ MCAsmInfo::MCAsmInfo() {
HiddenVisibilityAttr = MCSA_Hidden; HiddenVisibilityAttr = MCSA_Hidden;
ProtectedVisibilityAttr = MCSA_Protected; ProtectedVisibilityAttr = MCSA_Protected;
AbsoluteDebugSectionOffsets = false; AbsoluteDebugSectionOffsets = false;
AbsoluteEHSectionOffsets = false;
HasLEB128 = false; HasLEB128 = false;
HasDotLocAndDotFile = false; HasDotLocAndDotFile = false;
SupportsDebugInformation = false; SupportsDebugInformation = false;

View File

@ -32,7 +32,6 @@ MCAsmInfoCOFF::MCAsmInfoCOFF() {
// Set up DWARF directives // Set up DWARF directives
HasLEB128 = true; // Target asm supports leb128 directives (little-endian) HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
AbsoluteDebugSectionOffsets = true; AbsoluteDebugSectionOffsets = true;
AbsoluteEHSectionOffsets = false;
SupportsDebugInformation = true; SupportsDebugInformation = true;
DwarfSectionOffsetDirective = "\t.secrel32\t"; DwarfSectionOffsetDirective = "\t.secrel32\t";
HasMicrosoftFastStdCallMangling = true; HasMicrosoftFastStdCallMangling = true;