[cfe-commits] r83419 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Devang Patel dpatel at apple.com
Tue Oct 6 14:53:41 PDT 2009


Author: dpatel
Date: Tue Oct  6 16:53:41 2009
New Revision: 83419

URL: http://llvm.org/viewvc/llvm-project?rev=83419&view=rev
Log:
InsertSubprogramStart if ATTACH_DEBUG_INFO_TO_AN_INSN is not defined.

Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=83419&r1=83418&r2=83419&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Tue Oct  6 16:53:41 2009
@@ -879,7 +879,9 @@
                                   getOrCreateType(ReturnType, Unit),
                                   Fn->hasInternalLinkage(), true/*definition*/);
 
-//  DebugFactory.InsertSubprogramStart(SP, Builder.GetInsertBlock());
+#ifndef ATTACH_DEBUG_INFO_TO_AN_INSN
+  DebugFactory.InsertSubprogramStart(SP, Builder.GetInsertBlock());
+#endif
 
   // Push function on region stack.
   RegionStack.push_back(SP);





More information about the cfe-commits mailing list