summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86AsmPrinter.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-03-31 23:40:23 +0000
committerDale Johannesen <dalej@apple.com>2008-03-31 23:40:23 +0000
commit7d02cf3c9c23727be1e837ce3e2a6cc7ecaf1636 (patch)
tree55529d204c6f6539a6f42d40457693279a0f8dff /llvm/lib/Target/X86/X86AsmPrinter.cpp
parenta9590d1c0d0f99702a16cf387cf53f28803c962f (diff)
downloadbcm5719-llvm-7d02cf3c9c23727be1e837ce3e2a6cc7ecaf1636.tar.gz
bcm5719-llvm-7d02cf3c9c23727be1e837ce3e2a6cc7ecaf1636.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. llvm-svn: 49006
Diffstat (limited to 'llvm/lib/Target/X86/X86AsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/X86/X86AsmPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86AsmPrinter.cpp b/llvm/lib/Target/X86/X86AsmPrinter.cpp
index 98e7d9c1e81..e1bc65fc5d6 100644
--- a/llvm/lib/Target/X86/X86AsmPrinter.cpp
+++ b/llvm/lib/Target/X86/X86AsmPrinter.cpp
@@ -381,9 +381,9 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
O << "\n";
- if (ExceptionHandling && TAI->doesSupportExceptionHandling() && MMI &&
- !Subtarget->is64Bit()) {
+ if (TAI->doesSupportExceptionHandling() && MMI && !Subtarget->is64Bit()) {
// 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(),
OpenPOWER on IntegriCloud