diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-24 18:54:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-24 18:54:37 +0000 |
commit | 70413126b6dbc0a5788f9a14cb227a5badc033d9 (patch) | |
tree | 9b3ea811ac4dcd7bc85a3c20f786ebf55b1d8053 /llvm/lib/CodeGen | |
parent | 2981dc1742314541394e9e3e59f267ee0a9c7089 (diff) | |
download | bcm5719-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')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 4 |
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 |