llvm::AsmParserContext::getFunctionLocation

Get the recorded source range of a function.

Synopsis

Declared in <llvm/AsmParser/AsmParserContext.h>

std::optional<FileLocRange>
getFunctionLocation(Function const* F) const;

Return Value

The range, or std::nullopt if none is stored.

Parameters

NameDescription
FFunction whose location is requested.