llvm::objcopy::wasm::executeObjcopyOnBinary

Apply the transformations described by Config and WasmConfig to In and writes the result into Out.

Synopsis

Declared in <llvm/ObjCopy/wasm/WasmObjcopy.h>

Error
executeObjcopyOnBinary(
    CommonConfig const& Config,
    WasmConfig const& WasmConfig,
    object::WasmObjectFile& In,
    raw_ostream& Out);

Return Value

any Error encountered whilst performing the operation.

Parameters

NameDescription
ConfigCommon objcopy configuration options.
WasmConfigWasm-specific configuration options.
InInput Wasm object file to transform.
OutOutput stream to write the transformed binary to.