llvm::DILocalScope::getSubprogram

Get the subprogram for this scope.

Synopsis

Declared in <llvm/IR/DebugInfoMetadata.h>

DISubprogram*
getSubprogram() const;

Description

Return this if it's an DISubprogram; otherwise, look up the scope chain.

Return Value

get the subprogram for this scope.