[cfe-dev] function pointers in clang's codegen

ret val retval386 at gmail.com
Tue Jun 28 10:21:03 PDT 2011


>From within Clang's CodeGen, I would like to be able to determine if a
function pointer is being called and insert a call to my own function before
this.

EmitCallExpr(in CGExpr.cpp) takes in a CallExpr, I'm wondering if I can
determine if a function pointer is being called by seeing if it is a
indirect call. For C, is this the only way to cause a indirect call? Is this
safe? Also, can I call my own function here? I'm not entirely sure what to
modify.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110628/582264ec/attachment.html>


More information about the cfe-dev mailing list