From aa8f8889a861aadc061aec71fb7ed7f628848a2d Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 1 Jul 2008 23:34:48 +0000 Subject: Darwin doesn't need exception handling information for the "move" info when debug information is being output, because it's leet! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52994 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/DwarfWriter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/DwarfWriter.cpp') diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp index 68ec6c49ac..569702c59d 100644 --- a/lib/CodeGen/DwarfWriter.cpp +++ b/lib/CodeGen/DwarfWriter.cpp @@ -827,7 +827,7 @@ protected: /// AsmPrinter *Asm; - /// TAI - Target Asm Printer. + /// TAI - Target asm information. const TargetAsmInfo *TAI; /// TD - Target data. @@ -3511,7 +3511,7 @@ public: shouldEmitTable = true; // See if we need frame move info. - if (MMI->hasDebugInfo() || + if ((MMI->hasDebugInfo() && TAI->doesDebugInfoRequireFrameMoveInfo()) || !MF->getFunction()->doesNotThrow() || UnwindTablesMandatory) shouldEmitMoves = true; -- cgit v1.2.3-18-g5258