Yes, the function is an inline function in PostDominators.h. In fact almost all the functions in the header are inlined.<div><br></div><div><pre class="fragment" style="font-family:Fixed,monospace;font-size:13px;border:1px solid rgb(204,204,204);background-color:rgb(245,245,245);margin:4px 8px 4px 2px;padding:4px 6px">
<a class="code" href="http://llvm.org/doxygen/structllvm_1_1PostDominatorTree.html#a94e7209d35e2a344f6b3632330fe8502" style="color:rgb(0,0,255);text-decoration:none">00045</a>   <span class="keyword" style="color:rgb(0,128,0)">inline</span> <a class="code" href="http://llvm.org/doxygen/classllvm_1_1DomTreeNodeBase.html" style="color:rgb(0,0,255);text-decoration:none">DomTreeNode</a> *<a class="code" href="http://llvm.org/doxygen/structllvm_1_1PostDominatorTree.html#a94e7209d35e2a344f6b3632330fe8502" style="color:rgb(0,0,255);text-decoration:none">getRootNode</a>()<span class="keyword" style="color:rgb(0,128,0)"> const </span>{
<a name="l00046" style="color:rgb(37,46,120)"></a>00046     <span class="keywordflow" style="color:rgb(224,128,0)">return</span> <a class="code" href="http://llvm.org/doxygen/structllvm_1_1PostDominatorTree.html#a0c34ac83dc77fc716cf0d104cb0ffe6a" style="color:rgb(0,0,255);text-decoration:none">DT</a>-><a class="code" href="http://llvm.org/doxygen/classllvm_1_1DominatorTreeBase.html#a18bbbda9c8de124d37f05034f8307aa0" style="color:rgb(0,0,255);text-decoration:none">getRootNode</a>();
<a name="l00047" style="color:rgb(37,46,120)"></a>00047   }</pre><div><br></div>I wonder how to go about making sure it is visible in debug mode.</div><div><br></div><div>George<br><div class="gmail_quote">On Tue, Aug 21, 2012 at 8:40 AM, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi George,<br>
<div class="im"><br>
> When I compile llvm in release mode, the problem goes away! I don't understand?<br>
<br>
</div>probably the function defined in the header is inlined into every function that<br>
calls it when optimization is turned on, but not when optimization is turned<br>
off.<br>
<div class="HOEnZb"><div class="h5"><br>
Ciao, Duncan.<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div>