OP_CALL and function pointers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm implementing support for function pointer calls and I noticed that
->func->sym in 'strut instruction' is not SYM_NODE for function
pointers like it is for normal functions. Why is that?

LLVM expects us to use LLVMAddFunction() (which requires a name) and
pass the returned LLVMValueRef to LLVMBuildCall(). AFAICT, Clang uses
the function pointer symbol name as the function name.

                        Pekka
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux