aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/DwarfWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp
index 40de586..983d8f5 100644
--- a/lib/CodeGen/DwarfWriter.cpp
+++ b/lib/CodeGen/DwarfWriter.cpp
@@ -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.