[LLVMdev] Finding the functions whose addresses are taken.

Mikhail Glushenkov foldr at codedgers.com
Tue Sep 8 14:01:13 PDT 2009


Kenneth Uildriks <kennethuil <at> gmail.com> writes:

> 
> Each function is a GlobalValue.  Find all the uses of them... any uses
> that are not a "call" with the function as callee goes into your list.

One fun possibility is the following "call which is not
a call" (was actually spotted in the wild):

call void (...)* bitcast (void (i32)* @exit to void (...)*)(i32
73) noreturn nounwind




More information about the llvm-dev mailing list