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 | 1f522feabf25134249bc7894e04f5b89fa071b7f (patch) | |
tree | a3105cf3b21aa114a66fa2b31b9bf3a0f8dec92f /lib/CodeGen | |
parent | 0a7befa8bd56621f51eaf9196417b866962bf7b1 (diff) |
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 2b1b48f60e..bf4af42628 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 |