Fix build of compiler-llvm by growing the interface to SectionBody.

This commit is contained in:
Nick Lewycky
2020-05-03 16:08:05 -07:00
parent 861958a4ab
commit 3a004b3e82
3 changed files with 21 additions and 6 deletions

View File

@ -40,7 +40,7 @@ use wasmer_compiler::{
to_wasm_error, wasm_unsupported, Addend, CodeOffset, CompileError, CompiledFunction,
CompiledFunctionFrameInfo, CompiledFunctionUnwindInfo, CustomSection, CustomSectionProtection,
FunctionAddressMap, FunctionBody, FunctionBodyData, Relocation, RelocationKind,
RelocationTarget, SourceLoc, WasmResult,
RelocationTarget, SectionBody, SourceLoc, WasmResult,
};
use wasmer_runtime::libcalls::LibCall;
use wasmer_runtime::Module as WasmerCompilerModule;
@ -384,7 +384,7 @@ impl FuncTranslator {
required_custom_sections.len(),
CustomSection {
protection: CustomSectionProtection::Read,
bytes: vec![],
bytes: SectionBody::default(),
},
);
for section in object.get_sections() {