Skip relocations for test_wrapper since we don't run a linker on it anyway.

This commit is contained in:
Brian Carroll 2021-10-30 09:38:38 +01:00
parent b541802819
commit 99b08ad395
4 changed files with 26 additions and 87 deletions

View file

@ -441,7 +441,8 @@ impl<'a> CodeBuilder<'a> {
self.code.push(immediate);
}
fn inst_imm32(&mut self, opcode: u8, pops: usize, push: bool, immediate: u32) {
// public for use in test code
pub fn inst_imm32(&mut self, opcode: u8, pops: usize, push: bool, immediate: u32) {
self.inst(opcode, pops, push);
self.code.encode_u32(immediate);
}

View file

@ -3,12 +3,10 @@ pub mod code_builder;
pub mod from_wasm32_memory;
mod layout;
pub mod module_builder;
pub mod opcodes;
pub mod serialize;
mod storage;
#[allow(dead_code)]
mod opcodes;
use bumpalo::{self, collections::Vec, Bump};
use parity_wasm::builder;