[LLVMdev] function failing to run in Jit
baldrick at free.fr
Sun Jul 24 23:58:12 PDT 2011
> @MyArray = external global [1000 x i32]
since MyArray is declared as being defined somewhere else (extern) you need to
link with something that actually defines @MyArray.
> @array = common global [1000 x i32] zeroinitializer, align 32 ;<[1000 x
> i32]*> [#uses=1]
Here MyArray is being defined, with an initial value that is all zero. Thus
there is no need to link with something that provides a definition.
More information about the llvm-dev