Unbreak X86/ELF Debugging. Somehow this line got lost in Jim's cleanup.
authorReid Spencer <rspencer@reidspencer.com>
Tue, 7 Nov 2006 06:36:36 +0000 (06:36 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 7 Nov 2006 06:36:36 +0000 (06:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31492 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/DwarfWriter.cpp

index c18fb124496c154f36574ee892fd04dabbcae29e..81c8963e16d64acef682409248b3c9578e13c49f 100644 (file)
@@ -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());