[llvm-commits] Documentation for GlobalValue lifetime requirements around an ExecutionEngine

Chris Lattner clattner at apple.com
Sat Apr 25 15:10:25 PDT 2009


On Apr 22, 2009, at 10:32 AM, Jeffrey Yasskin wrote:

> This is an attempt to describe how users have to handle deleting
> GlobalValues that they've emitted code for. I'm not sure I have the
> requirements right, so please double-check them.
>
> I believe that there's no way to free the memory that
> getOrEmitGlobalVariable allocates, but I haven't documented that on
> the theory that it's a bug.
>
> I also haven't mentioned the requirement that no thread, including the
> current one, is inside a function's machine code when you call
> recompileAndRelinkFunction(that_function). I'm not sure if it's
> obvious.

Applied, thanks!
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090420/076702.html

-Chris



More information about the llvm-commits mailing list