[llvm-commits] Proper FnEnd for JITEmitter::finishFunction
Evan Cheng
evan.cheng at apple.com
Thu Apr 30 12:25:05 PDT 2009
Ok. Thanks.
Evan
On Apr 30, 2009, at 8:36 AM, Argiris Kirtzidis wrote:
> The FnEnd in JITEmitter::finishFunction includes not only the
> machine code of the emitted function but also the memory for any
> global variables that were allocated while the relocations were
> resolved.
> Apart from not reporting the "actual" function code chunk (i.e. for
> AddFunctionToSymbolTable) it's also a bit annoying when the
> disassembler displays "junk" at the end of the function (trying to
> disassemble the memory that belongs to global variables).
>
> The tiny attached patch fixes it.
>
> -Argiris
> <fnend.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list