summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-06-19 23:21:20 +0000
committerDevang Patel <dpatel@apple.com>2009-06-19 23:21:20 +0000
commit88be5cf01fef41ba45a5483032e493e7c507f85f (patch)
treeead21f6759748abc79313251ec69200e9b8668f6 /llvm/lib
parentb4b20bbb7db4914403411175a9a13f32531617be (diff)
downloadbcm5719-llvm-88be5cf01fef41ba45a5483032e493e7c507f85f.tar.gz
bcm5719-llvm-88be5cf01fef41ba45a5483032e493e7c507f85f.zip
DwarfWriter is used to emit EH info also.
llvm-svn: 73792
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
index f5e3831ff33..f5f90aa4c0e 100644
--- a/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
+++ b/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
@@ -271,7 +271,7 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
O << "\t.size\t" << CurrentFnName << ", .-" << CurrentFnName << '\n';
// Emit post-function debug information.
- if (TAI->doesSupportDebugInformation())
+ if (TAI->doesSupportDebugInformation() || TAI->doesSupportExceptionHandling())
DW->EndFunction(&MF);
// Print out jump tables referenced by the function.
@@ -1034,7 +1034,7 @@ bool X86ATTAsmPrinter::doFinalization(Module &M) {
}
// Emit final debug information.
- if (TAI->doesSupportDebugInformation())
+ if (TAI->doesSupportDebugInformation() || TAI->doesSupportExceptionHandling())
DW->EndModule();
// Funny Darwin hack: This flag tells the linker that no global symbols
@@ -1054,11 +1054,11 @@ bool X86ATTAsmPrinter::doFinalization(Module &M) {
}
// Emit final debug information.
- if (TAI->doesSupportDebugInformation())
+ if (TAI->doesSupportDebugInformation() || TAI->doesSupportExceptionHandling())
DW->EndModule();
} else if (Subtarget->isTargetELF()) {
// Emit final debug information.
- if (TAI->doesSupportDebugInformation())
+ if (TAI->doesSupportDebugInformation() || TAI->doesSupportExceptionHandling())
DW->EndModule();
}
OpenPOWER on IntegriCloud