[LLVMdev] Redefining function

Jeffrey Yasskin jyasskin at google.com
Sun Jan 31 08:49:11 PST 2010

On Sun, Jan 31, 2010 at 7:35 AM, Conrado Miranda
<miranda.conrado at gmail.com> wrote:
> Great! It just worked. I was a bit worried about using pointers to call
> functions because it's a little too overwhelming in a big project, I think.
> Just for the record, if the function code isn't freed with
> freeMachineCodeForFunction, I get a segmentation fault during
> recompileAndRelinkFunction with this stack dump:
> Running pass 'X86 Machine Code Emitter' on function '@do_print'

Well, it's not supposed to segfault. At worst, it should give you an
assertion error when you do something wrong (when it's compiled with
asserts, of course). Could you either file a bug, or send me the exact
code you were using with the command line you used to compile it
against svn head?


More information about the llvm-dev mailing list