[llvm-dev] LLVM-8.0 | Requesting Help : Function->getName() returns empty string

Manoj via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 23 01:54:50 PDT 2019


Yes, I did.  I printed out the one I am returning and the one I am
receiving. Both are same. This use to work on LLVM-3.3. Now I am trying to
port it to 8.0.

Please let me know, I can provide you with more code prior to this, If that
would help.

Regards,
Manoj

On Fri, Aug 23, 2019 at 12:42 PM Tim Northover <t.p.northover at gmail.com>
wrote:

> Hi Manoj,
>
> > Here it prints an empty string and also the
> executionEngine->runFunction() gives error : Assertion failed! Expression:
> GV->hasName() && "Global must have name."
>
> Have you checked that it's definitely the same pointer? Obviously the
> code you posted isn't real but it does show funcHandle being passed as
> an int rather than an intptr, which could easily truncate the value.
>
> Cheers.
>
> Tim.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190823/a85cb129/attachment.html>


More information about the llvm-dev mailing list