aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/DwarfWriter.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-04-14 17:54:17 +0000
committerDale Johannesen <dalej@apple.com>2008-04-14 17:54:17 +0000
commit3541af73b6b8a083cf2d7784438d60e8bcce3883 (patch)
tree32d74280a098233806b9be1892de720a7d2275f5 /lib/CodeGen/DwarfWriter.cpp
parentec1f1a8bd2db222548ec74458c6053124b3fc367 (diff)
Reverse sense of unwind-tables option. This means
stack tracebacks on Darwin x86-64 won't work by default; nevertheless, everybody but me thinks this is a good idea. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/DwarfWriter.cpp')
-rw-r--r--lib/CodeGen/DwarfWriter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp
index 6cdc91e1f7..3a3a04d2fa 100644
--- a/lib/CodeGen/DwarfWriter.cpp
+++ b/lib/CodeGen/DwarfWriter.cpp
@@ -2906,10 +2906,10 @@ private:
// If there are no calls then you can't unwind. This may mean we can
// omit the EH Frame, but some environments do not handle weak absolute
// symbols.
- // If UnwindTablesOptional is not set we cannot do this optimization; the
+ // If UnwindTablesMandatory is set we cannot do this optimization; the
// unwind info is to be available for non-EH uses.
if (!EHFrameInfo.hasCalls &&
- UnwindTablesOptional &&
+ !UnwindTablesMandatory &&
((linkage != Function::WeakLinkage &&
linkage != Function::LinkOnceLinkage) ||
!TAI->getWeakDefDirective() ||
@@ -3432,7 +3432,7 @@ public:
// See if we need frame move info.
if (MMI->hasDebugInfo() ||
!MF->getFunction()->doesNotThrow() ||
- !UnwindTablesOptional)
+ UnwindTablesMandatory)
shouldEmitMoves = true;
if (shouldEmitMoves || shouldEmitTable)