1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02: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!

llvm-svn: 10185
This commit is contained in:
Chris Lattner 2003-11-23 18:06:37 +00:00
parent 5e273085b9
commit 76301eaba6
2 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,20 @@
##===- projects/sample/Makefile ----------------------------*- Makefile -*-===##
#
# This is a sample Makefile for a project that uses LLVM.
#
##===----------------------------------------------------------------------===##
#
# Indicates our relative path to the top of the project's root directory.
#
LEVEL = ../../..
#
# Directories that needs to be built.
#
DIRS = compiler runtime
#
# Include the Master Makefile that knows how to build all.
#
include $(LEVEL)/Makefile.common

View File

@ -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
);