Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/codegen/infrastructure/function-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,6 @@ export class FunctionGenerator {
" {\n";
ir += "entry:\n";

ir += " call void @GC_init()\n";
if (this.ctx.getUsesMathRandom()) {
ir += " %__seed_time = call i64 @time(i8* null)\n";
ir += " call void @srand48(i64 %__seed_time)\n";
Expand Down
3 changes: 1 addition & 2 deletions src/codegen/infrastructure/llvm-declarations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ export function getLLVMDeclarations(config?: DeclConfig): string {
ir += "declare i8* @calloc(i64, i64)\n";
ir += "declare void @free(i8*)\n";

ir += "; Boehm GC - automatic garbage collection\n";
ir += "declare void @GC_init()\n";
ir += "; Boehm GC - automatic garbage collection (lazy init on first GC_malloc)\n";
ir += "declare noalias i8* @GC_malloc(i64)\n";
ir += "declare noalias i8* @GC_malloc_atomic(i64)\n";
ir += "declare noalias i8* @GC_malloc_uncollectable(i64)\n";
Expand Down
Loading