Fix invalid LLVM IR for global.get/set of imported globals.

In passing, refactor global accesses and cache the address computations and values of const globals.

Also includes some cargo fmt fixes.
This commit is contained in:
Nick Lewycky
2020-05-18 14:35:23 -07:00
parent f20d09fb2d
commit dff7cf28c9
3 changed files with 76 additions and 178 deletions

View File

@ -155,5 +155,4 @@ impl Compiler for LLVMCompiler {
Ok(PrimaryMap::new())
// unimplemented!("Dynamic funciton trampolines not yet implemented");
}
}