mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
Fix these assertions:
stkrc -e -f -o testing.bc testing.st Global is external, but doesn't have external linkage! [1024 x int]* %_stack_ Global is external, but doesn't have external linkage! long* %_index_ Broken module found, compilation aborted! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -132,7 +132,7 @@ StackerCompiler::compile(
|
||||
/*type=*/ stack_type,
|
||||
/*isConstant=*/ false,
|
||||
/*Linkage=*/ GlobalValue::AppendingLinkage,
|
||||
/*initializer=*/0,
|
||||
/*initializer=*/Constant::getNullValue(stack_type),
|
||||
/*name=*/ "_stack_",
|
||||
/*parent=*/ TheModule
|
||||
);
|
||||
@ -144,7 +144,7 @@ StackerCompiler::compile(
|
||||
/*type=*/Type::LongTy,
|
||||
/*isConstant=*/false,
|
||||
/*Linkage=*/GlobalValue::LinkOnceLinkage,
|
||||
/*initializer=*/0,
|
||||
/*initializer=*/Constant::getNullValue(Type::LongTy),
|
||||
/*name=*/"_index_",
|
||||
/*parent=*/TheModule
|
||||
);
|
||||
|
Reference in New Issue
Block a user