Skip to content

Commit 4a1f0ce

Browse files
committed
Changed module name in codegeneration
1 parent a9cd2b3 commit 4a1f0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/codegen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ codegen::Context::Context(ast::Ast& ast) : ast(ast) {
356356

357357
// Create llvm context
358358
this->context = new llvm::LLVMContext();
359-
this->module = new llvm::Module("My cool jit", *(this->context));
359+
this->module = new llvm::Module(ast.module_path.filename().c_str(), *(this->context));
360360
this->builder = new llvm::IRBuilder(*(this->context));
361361

362362
// Add function pass optimizations

0 commit comments

Comments
 (0)