summaryrefslogtreecommitdiffstats
path: root/llvm
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
commite239fa05cd4d221439b6650a37391176c7bee3a0 (patch)
treec311d13b959569c3c73a69dd5dfeb81aec3bb8e0 /llvm
parentd03ac95d5d4ddf9930fb4ff0f2e8c7fea75c05c5 (diff)
downloadbcm5719-llvm-e239fa05cd4d221439b6650a37391176c7bee3a0.tar.gz
bcm5719-llvm-e239fa05cd4d221439b6650a37391176c7bee3a0.zip
isAbsoluteEHSectionOffsets always returns false, eliminate it
and substitute false at the one call site. llvm-svn: 100354
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/MC/MCAsmInfo.h7
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp2
-rw-r--r--llvm/lib/MC/MCAsmInfo.cpp1
-rw-r--r--llvm/lib/MC/MCAsmInfoCOFF.cpp1
4 files changed, 1 insertions, 10 deletions
diff --git a/llvm/include/llvm/MC/MCAsmInfo.h b/llvm/include/llvm/MC/MCAsmInfo.h
index 4dfe9f0e52e..d190ea4568f 100644
--- a/llvm/include/llvm/MC/MCAsmInfo.h
+++ b/llvm/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/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
index 87224fa6682..b9664190806 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
+++ b/llvm/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/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp
index c96ff82b308..0306dec363f 100644
--- a/llvm/lib/MC/MCAsmInfo.cpp
+++ b/llvm/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/llvm/lib/MC/MCAsmInfoCOFF.cpp b/llvm/lib/MC/MCAsmInfoCOFF.cpp
index 5170206c729..e9bc8fa9c3e 100644
--- a/llvm/lib/MC/MCAsmInfoCOFF.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud