llvm::object::extractOffloadBundleFatBinary

Extracts fat binary in binary clang-offload-bundler format from object Obj and return it in Bundles

Synopsis

Declared in <llvm/Object/OffloadBundle.h>

Error
extractOffloadBundleFatBinary(
    ObjectFile const& Obj,
    SmallVectorImpl<OffloadBundleFatBin>& Bundles);

Return Value

Lightweight error class with error context and mandatory checking.

Parameters

NameDescription
ObjThis class is the base class for all object file types. Concrete instances of this object are created by createObjectFile, which figures out which type to create.
BundlesThis class consists of common code factored out of the SmallVector class to reduce code duplication based on the SmallVector 'N' template parameter.