That works perfect, thanks!<div><br></div><div>-Stephen<br><div><br><div class="gmail_quote">On Thu, Oct 11, 2012 at 4:02 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com" target="_blank">eli.friedman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, Oct 11, 2012 at 3:56 PM, Stephen Schiffli <<a href="mailto:sschiffli@gmail.com">sschiffli@gmail.com</a>> wrote:<br>

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