[llvm-dev] Finding all pointers to functions

Christian Convey via llvm-dev llvm-dev at lists.llvm.org
Mon Dec 28 07:50:12 PST 2015

> On 12/22/15 4:45 AM, Russell Wallace via llvm-dev wrote:
> Oh, I just came across Function::hasAddressTaken. Maybe I can just use
> that instead?
> You could conservatively assume that any function that has its address
> taken has a pointer to it that escapes into memory or external code.

I wonder if a conservative estimate of pointed-to functions would also need
to include all functions with externally visible linkage?

I could imagine a few routes by which that allows such a function to have
its address show up in the data being handled by the Module's own code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151228/eb73dbc0/attachment.html>

More information about the llvm-dev mailing list