[LLVMdev] Variable declarations vs. definitions

Chris Lattner clattner at apple.com
Sat Jan 9 13:12:03 PST 2010


On Jan 9, 2010, at 12:57 PM, Dustin Laurence wrote:

> I have yet another question that I believe also stems from deep
> ignorance of the linkage types.  How do you declare a global variable
> without defining it?

The equivalent of "extern int G;" is:

@G = external global i32

-Chris



More information about the llvm-dev mailing list