llvm::AsmParserContext::getBlockLocation

Get the recorded source range of a basic block.

Synopsis

Declared in <llvm/AsmParser/AsmParserContext.h>

std::optional<FileLocRange>
getBlockLocation(BasicBlock const* BB) const;

Return Value

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

Parameters

NameDescription
BBBasic block whose location is requested.