aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-07-04 09:55:48 +0000
committerDuncan Sands <baldrick@free.fr>2008-07-04 09:55:48 +0000
commitececf99c07febbcaeec73822519f0d36d3ee50c4 (patch)
tree6b593e3f52aa0061a766c3770254122418e0002d
parentc04f46567c3ebf64257d8f03e29d80a69606a6bc (diff)
Linux also does not require exception handling
moves in order to get correct debug info. Since I can't imagine how any target could possibly be any different, I've just stripped out the option: now all the world's like Darwin! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53134 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetAsmInfo.h8
-rw-r--r--lib/CodeGen/DwarfWriter.cpp4
-rw-r--r--lib/Target/PowerPC/PPCTargetAsmInfo.cpp1
-rw-r--r--lib/Target/TargetAsmInfo.cpp1
-rw-r--r--lib/Target/X86/X86TargetAsmInfo.cpp1
5 files changed, 1 insertions, 14 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h
index aada8ff937..bf4fd10338 100644
--- a/include/llvm/Target/TargetAsmInfo.h
+++ b/include/llvm/Target/TargetAsmInfo.h
@@ -413,11 +413,6 @@ namespace llvm {
///
const char *DwarfExceptionSection; // Defaults to ".gcc_except_table".
- /// DebugInfoRequireFrameMoveInfo - Does debugging info require frame move
- /// info.
- ///
- bool DebugInfoRequireFrameMoveInfo; // Defaults to "true"
-
//===--- CBE Asm Translation Table -----------------------------------===//
const char *const *AsmTransCBE; // Defaults to empty
@@ -703,9 +698,6 @@ namespace llvm {
const char *getDwarfExceptionSection() const {
return DwarfExceptionSection;
}
- bool doesDebugInfoRequireFrameMoveInfo() const {
- return DebugInfoRequireFrameMoveInfo;
- }
const char *const *getAsmCBE() const {
return AsmTransCBE;
}
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp
index 2d0a114202..cf46413e70 100644
--- a/lib/CodeGen/DwarfWriter.cpp
+++ b/lib/CodeGen/DwarfWriter.cpp
@@ -3512,9 +3512,7 @@ public:
shouldEmitTable = true;
// See if we need frame move info.
- if ((MMI->hasDebugInfo() && TAI->doesDebugInfoRequireFrameMoveInfo()) ||
- !MF->getFunction()->doesNotThrow() ||
- UnwindTablesMandatory)
+ if (!MF->getFunction()->doesNotThrow() || UnwindTablesMandatory)
shouldEmitMoves = true;
if (shouldEmitMoves || shouldEmitTable)
diff --git a/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
index 00e1aabdd1..058de655ef 100644
--- a/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
+++ b/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
@@ -66,7 +66,6 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const PPCTargetMachine &TM)
DwarfEHFrameSection =
".section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support";
DwarfExceptionSection = ".section __DATA,__gcc_except_tab";
- DebugInfoRequireFrameMoveInfo = false;
GlobalEHDirective = "\t.globl\t";
SupportsWeakOmittedEHFrame = false;
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp
index 8caff91e60..2adad3d7ba 100644
--- a/lib/Target/TargetAsmInfo.cpp
+++ b/lib/Target/TargetAsmInfo.cpp
@@ -111,7 +111,6 @@ TargetAsmInfo::TargetAsmInfo() :
DwarfMacInfoSection(".debug_macinfo"),
DwarfEHFrameSection(".eh_frame"),
DwarfExceptionSection(".gcc_except_table"),
- DebugInfoRequireFrameMoveInfo(true),
AsmTransCBE(0) {
}
diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp
index d0b3b818f1..887c13dcc7 100644
--- a/lib/Target/X86/X86TargetAsmInfo.cpp
+++ b/lib/Target/X86/X86TargetAsmInfo.cpp
@@ -124,7 +124,6 @@ X86TargetAsmInfo::X86TargetAsmInfo(const X86TargetMachine &TM) {
DwarfEHFrameSection =
".section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support";
DwarfExceptionSection = ".section __DATA,__gcc_except_tab";
- DebugInfoRequireFrameMoveInfo = false;
break;
case X86Subtarget::isELF: