aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2006-11-08 17:38:54 +0000
committerTanya Lattner <tonic@nondot.org>2006-11-08 17:38:54 +0000
commit9200d055b5c9fdec2992a2ab9fa3363978e8630d (patch)
treedca75962503ae78801915d27d82e4985649bb51d
parentc739b273e9464e68141d910edc3de6c7db59751d (diff)
downloadllvm-9200d055b5c9fdec2992a2ab9fa3363978e8630d.zip
llvm-9200d055b5c9fdec2992a2ab9fa3363978e8630d.tar.gz
llvm-9200d055b5c9fdec2992a2ab9fa3363978e8630d.tar.bz2
Merging from mainline
llvm-svn: 31554
-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 c18fb12..81c8963 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());