[llvm-commits] [llvm] r73792 - /llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp

Devang Patel dpatel at apple.com
Fri Jun 19 16:21:20 PDT 2009


Author: dpatel
Date: Fri Jun 19 18:21:20 2009
New Revision: 73792

URL: http://llvm.org/viewvc/llvm-project?rev=73792&view=rev
Log:
DwarfWriter is used to emit EH info also.

Modified:
    llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp

Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp?rev=73792&r1=73791&r2=73792&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp Fri Jun 19 18:21:20 2009
@@ -271,7 +271,7 @@
     O << "\t.size\t" << CurrentFnName << ", .-" << CurrentFnName << '\n';
 
   // Emit post-function debug information.
-  if (TAI->doesSupportDebugInformation())
+  if (TAI->doesSupportDebugInformation() || TAI->doesSupportExceptionHandling())
     DW->EndFunction(&MF);
 
   // Print out jump tables referenced by the function.
@@ -1034,7 +1034,7 @@
     }
 
     // Emit final debug information.
-    if (TAI->doesSupportDebugInformation())
+    if (TAI->doesSupportDebugInformation() || TAI->doesSupportExceptionHandling())
       DW->EndModule();
 
     // Funny Darwin hack: This flag tells the linker that no global symbols
@@ -1054,11 +1054,11 @@
     }
 
     // Emit final debug information.
-    if (TAI->doesSupportDebugInformation())
+    if (TAI->doesSupportDebugInformation() || TAI->doesSupportExceptionHandling())
       DW->EndModule();
   } else if (Subtarget->isTargetELF()) {
     // Emit final debug information.
-    if (TAI->doesSupportDebugInformation())
+    if (TAI->doesSupportDebugInformation() || TAI->doesSupportExceptionHandling())
       DW->EndModule();
   }
 





More information about the llvm-commits mailing list