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.
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;
}

View 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();

View File

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

View 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;