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 | 9db5fbac05bf6ca6007bca84ff46f2da4f929a85 (patch) | |
tree | 5aa824f78872c0fd0501ba870219151075e99f24 | |
parent | 9f40bc2f79b21e3422883a8f91fb2e032b14951c (diff) | |
download | bcm5719-llvm-9db5fbac05bf6ca6007bca84ff46f2da4f929a85.tar.gz bcm5719-llvm-9db5fbac05bf6ca6007bca84ff46f2da4f929a85.zip |
factor some code better.
llvm-svn: 74067
-rw-r--r-- | llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index f4196fd5070..dedef3d08bd 100644 --- a/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/llvm/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(); |