[cfe-commits] r65422 - /cfe/trunk/lib/CodeGen/CGObjC.cpp

Devang Patel dpatel at apple.com
Tue Feb 24 17:09:46 PST 2009


Author: dpatel
Date: Tue Feb 24 19:09:46 2009
New Revision: 65422

URL: http://llvm.org/viewvc/llvm-project?rev=65422&view=rev
Log:
Enable debug info emission for objc methods.

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

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

==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjC.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjC.cpp Tue Feb 24 19:09:46 2009
@@ -125,6 +125,9 @@
 /// Generate an Objective-C method.  An Objective-C method is a C function with
 /// its pointer, name, and types registered in the class struture.  
 void CodeGenFunction::GenerateObjCMethod(const ObjCMethodDecl *OMD) {
+  // Check if we should generate debug info for this method.
+  if (CGM.getDebugInfo() && !OMD->getAttr<NodebugAttr>())
+    DebugInfo = CGM.getDebugInfo();
   StartObjCMethod(OMD, OMD->getClassInterface());
   EmitStmt(OMD->getBody());
   FinishFunction(cast<CompoundStmt>(OMD->getBody())->getRBracLoc());





More information about the cfe-commits mailing list