aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-04 21:29:44 +0000
committerChris Lattner <sabre@nondot.org>2010-04-04 21:29:44 +0000
commit0887fa0b8c966234025535d4adcbd5f562a3c0a5 (patch)
tree6874aebd5e288cc56c587762545248134a6c66e5
parente0103f03f05b770ebfc42152357a62acd8671945 (diff)
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
-rw-r--r--include/llvm/MC/MCAsmInfo.h7
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfPrinter.cpp2
-rw-r--r--lib/MC/MCAsmInfo.cpp1
-rw-r--r--lib/MC/MCAsmInfoCOFF.cpp1
4 files changed, 1 insertions, 10 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h
index 4dfe9f0e52..d190ea4568 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 87224fa668..b966419080 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 c96ff82b30..0306dec363 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 5170206c72..e9bc8fa9c3 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;