diff options
author | Dale Johannesen <dalej@apple.com> | 2008-03-31 23:40:23 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-03-31 23:40:23 +0000 |
commit | 80caa49bb50211658df49e9340fc562e7c3db625 (patch) | |
tree | 21bb1802da1e2ff5e6c426b200ee4f75f87cb0c0 /lib/Target/PowerPC/PPCAsmPrinter.cpp | |
parent | 6e04eac0dd956243c4f2d275d01a8157bff53726 (diff) | |
download | external_llvm-80caa49bb50211658df49e9340fc562e7c3db625.tar.gz external_llvm-80caa49bb50211658df49e9340fc562e7c3db625.tar.bz2 external_llvm-80caa49bb50211658df49e9340fc562e7c3db625.zip |
Emit exception handling info for functions which are
not marked nounwind, or for all functions when -enable-eh
is set, provided the target supports Dwarf EH.
llvm-gcc generates nounwind in the right places; other FEs
will need to do so also. Given such a FE, -enable-eh should
no longer be needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCAsmPrinter.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCAsmPrinter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index 2537d67dda..4cc9d2a9bd 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -1086,8 +1086,9 @@ bool DarwinAsmPrinter::doFinalization(Module &M) { O << "\n"; - if (ExceptionHandling && TAI->doesSupportExceptionHandling() && MMI) { + if (TAI->doesSupportExceptionHandling() && MMI) { // Add the (possibly multiple) personalities to the set of global values. + // Only referenced functions get into the Personalities list. const std::vector<Function *>& Personalities = MMI->getPersonalities(); for (std::vector<Function *>::const_iterator I = Personalities.begin(), |