forked from OSchip/llvm-project
Enable debug info emission for objc methods.
llvm-svn: 65422
This commit is contained in:
parent
7a164114f6
commit
9d7d17a8ec
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue