diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-24 05:47:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-24 05:47:59 +0000 |
commit | 974469d7aa2b5761d34dbf6c750b3e55057cc4bc (patch) | |
tree | d7b8631e63a0e757bf52a06afab7ddb4228b94dc | |
parent | 40e3c7acade9ece77319ce6e340af33d8c61de34 (diff) | |
download | external_llvm-974469d7aa2b5761d34dbf6c750b3e55057cc4bc.zip external_llvm-974469d7aa2b5761d34dbf6c750b3e55057cc4bc.tar.gz external_llvm-974469d7aa2b5761d34dbf6c750b3e55057cc4bc.tar.bz2 |
factor some code better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74067 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index f4196fd..dedef3d 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -1195,10 +1195,6 @@ bool X86ATTAsmPrinter::doFinalization(Module &M) { printHiddenGVStub(i->getKeyData()); } - // Emit final debug information. - if (TAI->doesSupportDebugInformation() || TAI->doesSupportExceptionHandling()) - DW->EndModule(); - // Funny Darwin hack: This flag tells the linker that no global symbols // contain code that falls through to other global symbols (e.g. the obvious // implementation of multiple entry points). If this doesn't occur, the @@ -1214,16 +1210,13 @@ bool X86ATTAsmPrinter::doFinalization(Module &M) { << ";\t.type\t" << (COFF::DT_FCN << COFF::N_BTSHFT) << ";\t.endef\n"; } - - // Emit final debug information. - if (TAI->doesSupportDebugInformation() || TAI->doesSupportExceptionHandling()) - DW->EndModule(); - } else if (Subtarget->isTargetELF()) { - // Emit final debug information. - if (TAI->doesSupportDebugInformation() || TAI->doesSupportExceptionHandling()) - DW->EndModule(); } - + + // Emit final debug information. + if (TAI->doesSupportDebugInformation() || TAI->doesSupportExceptionHandling()) + DW->EndModule(); + + if (NewAsmPrinter) { Streamer->Finish(); |