LLVM JIT reentrant?

I’m wondering if the LLVM JIT can be used in a reentrant manner.

Specifically, what I’d like to do is:

o Use LLVM JIT to compile code.

o Call the compiled function.

o Have the compiled function call the LLVM JIT to compile (and execute) more code.

If it helps, I’m currently using the MCJIT interface.

Toshi