llvm::DebugLoc::getFnDebugLoc

Find the debug info location for the start of the function.

Synopsis

Declared in <llvm/IR/DebugLoc.h>

DebugLoc
getFnDebugLoc() const;

Description

Walk up the scope chain of given debug loc and find line number info for the function.

FIXME: Remove this. Users should use DILocation/DILocalScope API to find the subprogram, and then DILocation::get().

Return Value

A DebugLoc for the enclosing function's start, or empty if none.