LLVM how to get callsite file name and line number
I am very very new to LLVM, and it's my first time to write C++ I need to find several function info related to LLVM CallSite, however, I have checked the source code here: LLVM CallSite Source Code Still don't know where to get call site file name (eg. CallSite is in example.c file), call site line number (eg. at line 18 in the whole program) Do you know how can I get call site file name and line number? You can get this information by retrieving debug information from the called function. The algorithm is the following: You need to get underlying called value, which is a function. Then you