llvm::DbgValueHistoryMap::trimLocationRanges

Drop location ranges which exist entirely outside each variable's scope.

Synopsis

Declared in <llvm/CodeGen/DbgEntityHistoryCalculator.h>

void
trimLocationRanges(
    MachineFunction const& MF,
    LexicalScopes& LScopes,
    InstructionOrdering const& Ordering);

Parameters

NameDescription
MFFunction providing instruction context for the histories.
LScopesLexical scopes used to decide which ranges are in-scope.
OrderingInstruction order used to compare range endpoints.