Peng Yu via llvm-dev
2019-Jan-27 22:08 UTC
[llvm-dev] figure out the name of the function called via % instead of @
Hi, I see the following code in a .ll file converted from a .bc file. %tmp12 = load void ()*, void ()** @rl_deprep_term_function, align 8, !dbg !11308 call void %tmp12(), !dbg !11309 As I understand it, @rl_deprep_term_function is a pointer to a variable of type void ()*, which is a pointer to a function takes no argument and return void. Upon load, %tmp12 holds the pointer to the function, which can be called in the following instruction. Does anybody know what is the best way to figure out the name of the function being called? This must be done at runtime and can not be done statically? Thanks. -- Regards, Peng