Displaying 2 results from an estimated 2 matches for "main_a".
Did you mean:
main__
2015 Apr 14
5
[LLVMdev] [cfe-dev] A problem with names that can not be demangled.
...rst
>
> showed up using LTO, but we can illustrate this by using llvm-link as well.
>
>
>
> Say we have two files with the same named static symbol Bye
>
>
>
> --------------- t1.cpp ---------
>
> static void Bye(int* ba1) { ba1[0] /= ba1[2] - 2; }
>
> void main_a( int* inB) { void (*func)(int*) = Bye; func(inB); }
>
> --------------- t2.cpp ---------
>
> static void Bye(int* ba1) { ba1[0] *= ba1[2] + 2; }
>
> void main_b( int* inB) { void (*func)(int*) = Bye; func(inB+1); }
>
>
>
> --------- cmd sequence -------
>
> $ cla...
2015 Apr 14
0
[LLVMdev] [cfe-dev] A problem with names that can not be demangled.
...a problem created by renaming of static symbols by llvm-link. It first
showed up using LTO, but we can illustrate this by using llvm-link as well.
Say we have two files with the same named static symbol Bye
--------------- t1.cpp ---------
static void Bye(int* ba1) { ba1[0] /= ba1[2] - 2; }
void main_a( int* inB) { void (*func)(int*) = Bye; func(inB); }
--------------- t2.cpp ---------
static void Bye(int* ba1) { ba1[0] *= ba1[2] + 2; }
void main_b( int* inB) { void (*func)(int*) = Bye; func(inB+1); }
--------- cmd sequence -------
$ clang++ -c -emit-llvm t1.cpp -o t1.bc
$ clang++ -c -emit-llvm...