[LLVMdev] JIT'ing constant globals
Chris Lattner
sabre at nondot.org
Mon Jun 12 10:27:36 PDT 2006
On Mon, 12 Jun 2006, Simon Burton wrote:
> It seems one can only put constant global statements
> _before_ any functions are defined, not after.
This is true in .ll files, but not necessary in LLVM modules.
> I would like to produce eg. "hello world!" functions in a JIT.
> So I was hoping to use global string constants.
> Is there another way to do this kind of thing ?
You should just be able to create the global. Can you be more specific
what you are doing?
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list