<div class="gmail_quote">2009/8/5 David Greene <span dir="ltr"><<a href="mailto:dag@cray.com">dag@cray.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">On Tuesday 04 August 2009 18:24, Chris Lattner wrote:<br><br>> The big issue is things like this:<br>><br>>    DOUT << foo.getName() << "\n";<br>><br>> When -debug is disable and even when assertions are turned off,<br>

> foo.getName() is still called.  When you use:<br><br></div>Yep, that's a problem.<br>
<div class="im"></div></blockquote>
<div> </div>
<div>Right !</div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im"><span id=""></span><br>> DEBUG(errs() << foo.getName() << "\n");<br>><br>> When assertions are turned off, the call doesn't exist.  It is also a<br>> lot less "magic".<br>

<br></div>Why doesn't<br><br>DEBUG(DOUT << foo.getName() << "\n");<br><br>work?  That's how I've always done it.  A bit redundant perhaps, but it works.<br><br>In any event, errs() is probably nicer.  I'll have to see if I can do some of<br>

the tricks I did with DOUT in these patches.  I think so, but I may be asking<br>questions in the future.  :)<br></blockquote>
<div> </div>
<div>So I can say </div>
<div> </div>
<div>    DEBUG( err().write_hex(address); err() << "\n"; );</div>
<div> </div>
<div>And can I say :-</div>
<div> </div>
<div>
<div>    DEBUG( err().write_hex(address) << "\n"; );</div>
<div> </div>
<div>does it associate like that ?</div>
<div> </div>
<div>Sorry I am away from my main computer on a laptop otherwise I would try it :)</div>
<div> </div>
<div>Aaron</div>
<div> </div></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span id=""></span><br><br>                              -Dave<br>
<div>
<div></div>
<div class="h5">_______________________________________________<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>