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? 回答1: You can get this information by retrieving debug information from the called