summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-07 06:36:36 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-07 06:36:36 +0000
commit78c84a032807b51612ea5730c68ecfc6c810190e (patch)
treeb9c332606e1aed5cbdc7e5a9e1f50824e65ba1c8 /llvm/lib/CodeGen
parent2bf78ba87d46a4dc6486adcbd30c08369ca9de66 (diff)
downloadbcm5719-llvm-78c84a032807b51612ea5730c68ecfc6c810190e.tar.gz
bcm5719-llvm-78c84a032807b51612ea5730c68ecfc6c810190e.zip
Unbreak X86/ELF Debugging. Somehow this line got lost in Jim's cleanup.
llvm-svn: 31492
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/DwarfWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp
index c18fb124496..81c8963e16d 100644
--- a/llvm/lib/CodeGen/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/DwarfWriter.cpp
@@ -2418,6 +2418,8 @@ private:
/// EmitFunctionDebugFrame - Emit per function frame info into a debug frame
/// section.
void EmitFunctionDebugFrame() {
+ if (!TAI->getDwarfRequiresFrameSection())
+ return;
// Start the dwarf frame section.
Asm->SwitchToDataSection(TAI->getDwarfFrameSection());
OpenPOWER on IntegriCloud