Function finishModuleAsm [src]
Prototype
pub fn finishModuleAsm(self: *Builder, aw: *Writer.Allocating) Allocator.Error!void Parameters
self: *Builderaw: *Writer.Allocating Source
pub fn finishModuleAsm(self: *Builder, aw: *Writer.Allocating) Allocator.Error!void {
self.module_asm = aw.toArrayList();
if (self.module_asm.getLastOrNull()) |last| if (last != '\n')
try self.module_asm.append(self.gpa, '\n');
}