Displaying 1 result from an estimated 1 matches for "00foo".
Did you mean:
00f1o
2014 Dec 11
5
[LLVMdev] How to get the original function name in C++?
Hi, everyone!
I'm new here trapped by a simple problem for days.
When LLVM translates C++ source code to IR, it will add a prefix to the
function name. For example:
source code:
int foo(){
return 1;
}
IR form:
define i32 @_Z3foov() #0 {
entry:
ret i32 1, !dbg !20
}
The getName() method returns _Z3foov, then how can I get foo? I know
the debugging information is contained in