llvm::parseDIExpressionBodyAtBeginning

Parse a DIExpression body at the beginning of the given string.

Synopsis

Declared in <llvm/AsmParser/Parser.h>

DIExpression*
parseDIExpressionBodyAtBeginning(
    StringRef Asm,
    unsigned int& Read,
    SMDiagnostic& Err,
    Module const& M,
    SlotMapping const* Slots);

Return Value

null on error.

Parameters

NameDescription
AsmThe string that starts with a DIExpression body.
ReadThe number of characters consumed while parsing.
ErrError result info.
MThe module providing context for named types and values.
SlotsThe optional slot mapping that will restore the parsing state of the module.