Enable debug info emission for objc methods.

llvm-svn: 65422
This commit is contained in:
Devang Patel 2009-02-25 01:09:46 +00:00
parent 7a164114f6
commit 9d7d17a8ec
1 changed files with 3 additions and 0 deletions

View File

@ -125,6 +125,9 @@ void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD,
/// 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());