llvm::getDISubprogram

Find subprogram that is enclosing this scope.

Synopsis

Declared in <llvm/IR/DebugInfo.h>

DISubprogram*
getDISubprogram(MDNode const* Scope);

Return Value

Enclosing DISubprogram for Scope, or nullptr if none.

Parameters

NameDescription
ScopeDebug scope metadata to walk upward from.