<div>Hello, I have a simple program using aliases to functions, and it seems that the CallGraph doesn't follow these aliases.  Here is the example: </div><div><br></div><div>@alias = alias void ()* @realfunc</div><div>
<br></div><div>define void @realfunc() {</div><div>entry:</div><div>  ret void</div><div>}</div><div><br></div><div>define i32 @main() {</div><div>entry:</div><div>  call void @alias()</div><div>  ret i32 0</div><div>}</div>
<div><br></div><div>******* Output of the CallGraph *******</div><div><br></div><div>Call graph node <<null function>><<0xbe64c0>>  #uses=0</div><div>  CS<0x0> calls function 'realfunc'</div>
<div>  CS<0x0> calls function 'realfunc'</div><div>  CS<0x0> calls function 'main'</div><div><br></div><div>Call graph node for function: 'realfunc'<<0xbe6880>>  #uses=2</div>
<div><br></div><div>Call graph node for function: 'main'<<0xbe6d80>>  #uses=1</div><div>  CS<0xbdfe7c> calls external node</div><div><br></div><div>Is there a reason the CallGraph doesn't try to see through aliases?  I would like this capability, but was wondering if it is generally safe to do.</div>
<div><br></div><div>Thanks,</div><div>-Stephen</div>