imageworks/OpenShadingLanguage — pull request #92 by fpsunflower (2011-11-08 21:54:41+00:00)
Title: Don't allocate global variables together with code when creating the JIT 

The comments in LLVM's header suggest that this is unsafe, which might explain the crashes inside LLVM we have been seeing when allocating global variables

Fix handling of HasGOT flag in our custom memory manager. This flag is protected and queried via a non-virtual function so we must mirror it ourselves. This is now enforced via some asserts in our code.