[LLVMdev] How to define a global variable?
Rob Nikander
rob.nikander at gmail.com
Wed Jan 12 15:38:16 PST 2011
On Wed, Jan 12, 2011 at 6:08 PM, Renato Golin <rengolin at systemcall.org> wrote:
> On 12 January 2011 22:28, Rob Nikander <rob.nikander at gmail.com> wrote:
>> @x = external global %0*
>
> Hi Rob,
>
> Try removing the 'extern', as it implies the variable storage is
> elsewhere (ie. another object file).
>
I have to pass something from the LinkageTypes enum to the
constructor. I tried others, like GlobalVariable::InternalLinkage,
which dumps as "internal global" but the error was the same.
Rob
More information about the llvm-dev
mailing list