Fix a problem introduced by a last-minute change (logic negation).
authorReid Spencer <rspencer@reidspencer.com>
Mon, 30 Oct 2006 23:34:32 +0000 (23:34 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 30 Oct 2006 23:34:32 +0000 (23:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31302 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/DwarfWriter.cpp

index 40de586a3e5ffb95c8c35e63367be27237346207..983d8f51821128a6dfb52a4952c9e5cc7a5772e7 100644 (file)
@@ -2627,7 +2627,7 @@ void Dwarf::EmitDebugLines() const {
 /// EmitInitialDebugFrame - Emit common frame info into a debug frame section.
 ///
 void Dwarf::EmitInitialDebugFrame() {
-  if (TAI->getDwarfRequiresFrameSection())
+  if (!TAI->getDwarfRequiresFrameSection())
     return;
 
   int stackGrowth =
@@ -2665,7 +2665,7 @@ void Dwarf::EmitInitialDebugFrame() {
 /// EmitFunctionDebugFrame - Emit per function frame info into a debug frame
 /// section.
 void Dwarf::EmitFunctionDebugFrame() {
-  if (TAI->getDwarfRequiresFrameSection())
+  if (!TAI->getDwarfRequiresFrameSection())
     return;
 
   // Start the dwarf frame section.