[LLVMdev] Linkage Types again!
Brian R. Gaeke
gaeke at uiuc.edu
Sun Nov 23 14:50:01 PST 2003
I'm guessing here, but I think what you want to do is have _stack_ be
"appending global <stack_type>" in the compilation units where you have main,
and "external global <stack_type>" in the compilation units where you do not.
I don't quite understand why you need an appending global to do this, if you
can only have one main. I would just set it to the correct initializer in the
module that has main, and leave it external everywhere else.
> What I'm trying to do is create a "global appending" array. In
> compilation units that don't include "main", I generate it with: [...]
--
gaeke at uiuc.edu
More information about the llvm-dev
mailing list