search for: consumer_decompress

Displaying 2 results from an estimated 2 matches for "consumer_decompress".

2015 Mar 02
2
[LLVMdev] clang change function name
Hi, I compile a .cpp with cmd: clang++ -emit-llvm -c -g -O0 -w pbzip2.cpp -o pbzip2.bc -lbz2 llvm-dis pbzip2.bc One function in .cpp is consumer_decompress. However, I look inside pbzip2.ll. The function name is changed to "define i8* @_Z19consumer_decompressPv(i8* %q) #0 {" Why clang adds a "_Z19" prefix and "Pv" suffix? Thanks,
2015 Mar 02
2
[LLVMdev] clang change function name
...Best, Haopeng On 3/1/15 10:44 PM, John Criswell wrote: > On 3/1/15 11:38 PM, Haopeng Liu wrote: >> Hi, >> >> I compile a .cpp with cmd: >> clang++ -emit-llvm -c -g -O0 -w pbzip2.cpp -o pbzip2.bc -lbz2 >> llvm-dis pbzip2.bc >> >> One function in .cpp is consumer_decompress. However, I look inside >> pbzip2.ll. The function name is changed to "define i8* >> @_Z19consumer_decompressPv(i8* %q) #0 {" >> >> Why clang adds a "_Z19" prefix and "Pv" suffix? > > Clang mangles the name so that the function's nam...