Parse a module summary index from an LLVM Assembly file.

Synopsis

Declared in <llvm/AsmParser/Parser.h>

std::unique_ptr<ModuleSummaryIndex>
parseSummaryIndexAssemblyFile(
    StringRef Filename,
    SMDiagnostic& Err);

Description

This function is a main interface to the LLVM Assembly Parser. It parses an ASCII file that (presumably) contains LLVM Assembly code for a module summary. It returns a ModuleSummaryIndex with the corresponding features. Note that this does not verify that the generated Index is valid, so you should run the verifier after parsing the file to check that it is okay.

Return Value

The parsed ModuleSummaryIndex, or null on error.

Parameters

Name

Description

Filename

The name of the file to parse

Err

Error result info.

Created with MrDocs