Global variables

Hello,

I’ve been playing lately a lot with LLVM. In the documentation that I have read, it is said that LLVM Context should provide memory isolation. However, is it possible to do opposite? I would like to have few modules, execution within the same execution context and have them accessing the same global variables.

P.S
I have tried using getGlobalContext, but I get an error stating that this is a private member. Am I on the right path?

Best regards,
Jasmin

Just like compiling two separate C files, references to globals have to be merged at link time.