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 | e1225cc5cd22b797c702bcdf4663c6a7bad707b9 (patch) | |
| tree | a3105cf3b21aa114a66fa2b31b9bf3a0f8dec92f /lib/CodeGen | |
| parent | db191f09eb4c5cc1e8b38a377896750cc6361e83 (diff) | |
| download | external_llvm-e1225cc5cd22b797c702bcdf4663c6a7bad707b9.zip external_llvm-e1225cc5cd22b797c702bcdf4663c6a7bad707b9.tar.gz external_llvm-e1225cc5cd22b797c702bcdf4663c6a7bad707b9.tar.bz2 | |
sink dwarf finalization out of each target into AsmPrinter::doFinalization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 2b1b48f..bf4af42 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/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 |
