ΒΆbool parseAssemblyInto(
llvm::MemoryBufferRef F,
llvm::Module* M,
llvm::ModuleSummaryIndex* Index,
llvm::SMDiagnostic& Err,
llvm::SlotMapping* Slots = nullptr,
bool UpgradeDebugInfo = true,
llvm::StringRef DataLayoutString = "")
bool parseAssemblyInto(
llvm::MemoryBufferRef F,
llvm::Module* M,
llvm::ModuleSummaryIndex* Index,
llvm::SMDiagnostic& Err,
llvm::SlotMapping* Slots = nullptr,
bool UpgradeDebugInfo = true,
llvm::StringRef DataLayoutString = "")
Description
This function is the low-level interface to the LLVM Assembly Parser. This is kept as an independent function instead of being inlined into parseAssembly for the convenience of interactive users that want to add recently parsed bits to an existing module.
Declared at: llvm/include/llvm/AsmParser/Parser.h:170
Parameters
- llvm::MemoryBufferRef F
- The MemoryBuffer containing assembly
- llvm::Module* M
- The module to add data to.
- llvm::ModuleSummaryIndex* Index
- The index to add data to.
- llvm::SMDiagnostic& Err
- Error result info.
- llvm::SlotMapping* Slots = nullptr
- The optional slot mapping that will be initialized during parsing.
- bool UpgradeDebugInfo = true
- Run UpgradeDebugInfo, which runs the Verifier. This option should only be set to false by llvm-as for use inside the LLVM testuite!
- llvm::StringRef DataLayoutString = ""
- Override datalayout in the llvm assembly.
Returns
true on error.