From 78c84a032807b51612ea5730c68ecfc6c810190e Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Tue, 7 Nov 2006 06:36:36 +0000 Subject: Unbreak X86/ELF Debugging. Somehow this line got lost in Jim's cleanup. llvm-svn: 31492 --- llvm/lib/CodeGen/DwarfWriter.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen') 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()); -- cgit v1.2.3