search for: name_mangl

Displaying 9 results from an estimated 9 matches for "name_mangl".

Did you mean: name_mangle
2014 Jun 11
3
[LLVMdev] How do clang & clang++ choose function names for LLVM IR?
Hello all, I'm getting started on a project using LLVM's opt tool to do static analysis, printing call graphs and such. When compiling C programs to IR (and eventually to call graphs), function names remain the same (main, function1, function2 etc.), but when compiling the same program as C++, the function names often have cruft added to them (_Z9function1v, _Z9function2v etc.) which
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
...> Why clang adds a "_Z19" prefix and "Pv" suffix? > > Clang mangles the name so that the function's name encodes the name > and the function's type; this helps the linker link C++ object files > together correctly. See > http://en.wikipedia.org/wiki/Name_mangling#Name_mangling_in_C.2B.2B > for more details. > > Regards, > > John Criswell > >> >> Thanks, >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http:...
1997 Oct 20
1
Disappearing clients in WINS list
On Mon, 20 Oct 1997, Dieter Rothacker wrote: > Luke Kenneth Casson Leighton wrote: > > > > Here is the smb.conf of the disappeared samba box: > > ^^^^^^^^^^^ > I do not think THIS computer should become local master !? > (see below) > > > > wins support = no > > > workgroup = WORKGROUP > > >
2009 Jan 12
2
[LLVMdev] GlobalVaraible and Function have the same name
Hi all, I just walked across an interesting situation in Module::getOrInsertFunction(Name, Type) in the LLVM C API. In my particular case: One of the first things we do is add a global variable named foo which is a [ 100 x i64 ]. Later we add a function void foo(...) unfortunately, when we do the getOrInsertFunction we get back void (...) * bitcast ([100 x i64]* @foo_ to void (...)*)
2009 Jun 17
0
[LLVMdev] Why are functions renamed for .cpp files with llvm-gcc?
...' with different parameters, (which C++ supports but C does not). _Z3barv just means "bar()", i.e. a function named 'bar' with no parameters (there's a program called c++filt to demangle these names). This is called name mangling. See also http://en.wikipedia.org/wiki/Name_mangling#Name_mangling_in_C.2B.2B
1998 Jun 29
0
1.9.18p8 compile problems
I get the following compile error when compiling p8 with p4 Makefile: Linking smbd util.o: In function `check_log_size': util.o(.text+0x2cc): undefined reference to `slprintf' util.o: In function `name_mangle': util.o(.text+0x94f): undefined reference to `slprintf' util.o: In function `standard_sub_basic': util.o(.text+0x4c9e): undefined reference to `slprintf' util.o: In function `uidtoname': util.o(.text+0x4f32): undefined reference to `slprintf' util.o: In function `gidtoname...
2013 Feb 18
1
[OT] how does ELF record file scope things?
fred.c: static void sfunc(int *p) { *p=1; } static int x; void fred(void) { ... sfunc(&x); ... } greg.c: static void sfunc(int *p) { *p=2; } static int x; void greg(void) { ... sfunc(&x); ... } Once the object files from fred.c and greg.c are linked, how does ELF distinguish the sfunc's and the x's? I've been trying to RTFM, but it hasn't helped? -- Michael
2009 Jun 17
8
[LLVMdev] Why are functions renamed for .cpp files with llvm-gcc?
Hello, I wonder why there is a difference in how llvm-gcc compiles .c and .cpp files. Example: ---bar.cpp---- int bar() { return 42; } -------------- $ llvm-gcc -emit-llvm -c bar.cpp Now running bar.o through llvm-dis gives: -------------------------------- define i32 @_Z3barv() nounwind { < clip > } -------------------------------- Above, function 'bar' has been renamed