asm...
This commit is contained in:
@@ -116,9 +116,14 @@ pub const Compilation = struct {
|
||||
pub fn lowerToIR(self: *Compilation) ir.Module {
|
||||
const root = self.resolved_root orelse self.root orelse return ir.Module.init(self.allocator);
|
||||
var module = ir.Module.init(self.allocator);
|
||||
//TODO: find a better place for this
|
||||
if (self.target_config.isWasm()) {
|
||||
module.types.pointer_size = 4;
|
||||
}
|
||||
var lowering = ir.Lowering.init(&module);
|
||||
lowering.main_file = self.file_path;
|
||||
lowering.resolved_root = root;
|
||||
lowering.target_config = self.target_config;
|
||||
lowering.lowerRoot(root);
|
||||
return module;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user