diff options
| author | Dale Johannesen <dalej@apple.com> | 2008-04-14 17:54:17 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2008-04-14 17:54:17 +0000 |
| commit | 876224b1e82a05c6c4923d70bf2ad04cc08f65a9 (patch) | |
| tree | a11d4f26af8a3d9e59a2c943694b1bb8e6a11741 /llvm/lib/CodeGen/DwarfWriter.cpp | |
| parent | 75ff623e2e119bfeeefb1a3f64fc28b76a5a1572 (diff) | |
| download | bcm5719-llvm-876224b1e82a05c6c4923d70bf2ad04cc08f65a9.tar.gz bcm5719-llvm-876224b1e82a05c6c4923d70bf2ad04cc08f65a9.zip | |
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.
llvm-svn: 49663
Diffstat (limited to 'llvm/lib/CodeGen/DwarfWriter.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/DwarfWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp index 6cdc91e1f72..3a3a04d2fa0 100644 --- a/llvm/lib/CodeGen/DwarfWriter.cpp +++ b/llvm/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) |

