summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-24 18:54:37 +0000
committerChris Lattner <sabre@nondot.org>2009-06-24 18:54:37 +0000
commit70413126b6dbc0a5788f9a14cb227a5badc033d9 (patch)
tree9b3ea811ac4dcd7bc85a3c20f786ebf55b1d8053 /llvm/lib/CodeGen/AsmPrinter
parent2981dc1742314541394e9e3e59f267ee0a9c7089 (diff)
downloadbcm5719-llvm-70413126b6dbc0a5788f9a14cb227a5badc033d9.tar.gz
bcm5719-llvm-70413126b6dbc0a5788f9a14cb227a5badc033d9.zip
sink dwarf finalization out of each target into AsmPrinter::doFinalization
llvm-svn: 74097
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 2b1b48f60e1..bf4af42628f 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -192,6 +192,10 @@ bool AsmPrinter::doInitialization(Module &M) {
}
bool AsmPrinter::doFinalization(Module &M) {
+ // Emit final debug information.
+ if (TAI->doesSupportDebugInformation() || TAI->doesSupportExceptionHandling())
+ DW->EndModule();
+
// If the target wants to know about weak references, print them all.
if (TAI->getWeakRefDirective()) {
// FIXME: This is not lazy, it would be nice to only print weak references
OpenPOWER on IntegriCloud