ΒΆvoid embedBufferInModule(
    llvm::Module& M,
    llvm::MemoryBufferRef Buf,
    llvm::StringRef SectionName,
    llvm::Align Alignment = llvm::Align(1))

Description

Embed the memory buffer \p Buf into the module \p M as a global using the specified section name. Also provide a metadata entry to identify it in the module using the same section name.

Declared at: llvm/include/llvm/Transforms/Utils/ModuleUtils.h:114

Parameters

llvm::Module& M
llvm::MemoryBufferRef Buf
llvm::StringRef SectionName
llvm::Align Alignment = llvm::Align(1)