[LLVMdev] call graph not complete

Sanjiv Gupta sanjiv.gupta at microchip.com
Thu Jan 21 11:03:15 PST 2010


Duncan Sands wrote:
> Hi,
>
>   
>> Bitcode generated by llvm-ld with –disable-opt and –basiccg options is:
>>     
>
> ...
>
>
>   
>> My point is why is the call to foo not resolved correctly in llvm-ld. 
>>     
>
> Resolving an call to a direct call is an optimization.  But you turned all
> optimizations off.
>
>   
BTW, why do clang generates an indirect call in the first place for the 
program given in the original post? Does c99 tell us to generate an 
indirect call when the prototype is like this
  void foo(); 

?

- Sanjiv
> Ciao,
>
> Duncan.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>   




More information about the llvm-dev mailing list