Rewrite examples to use DEBUG instead of DOUT.

llvm-svn: 77042
This commit is contained in:
Daniel Dunbar 2009-07-25 01:55:32 +00:00
parent ea23c3ba46
commit 04bbd9cd34
1 changed files with 5 additions and 5 deletions

View File

@ -448,7 +448,7 @@ tool) is run with the '<tt>-debug</tt>' command line argument:</p>
<div class="doc_code"> <div class="doc_code">
<pre> <pre>
DOUT &lt;&lt; "I am here!\n"; DEBUG(errs() &lt;&lt; "I am here!\n");
</pre> </pre>
</div> </div>
@ -493,16 +493,16 @@ option as follows:</p>
<div class="doc_code"> <div class="doc_code">
<pre> <pre>
DOUT &lt;&lt; "No debug type\n";
#undef DEBUG_TYPE #undef DEBUG_TYPE
DEBUG(errs() &lt;&lt; "No debug type\n");
#define DEBUG_TYPE "foo" #define DEBUG_TYPE "foo"
DOUT &lt;&lt; "'foo' debug type\n"; DEBUG(errs() &lt;&lt; "'foo' debug type\n");
#undef DEBUG_TYPE #undef DEBUG_TYPE
#define DEBUG_TYPE "bar" #define DEBUG_TYPE "bar"
DOUT &lt;&lt; "'bar' debug type\n"; DEBUG(errs() &lt;&lt; "'bar' debug type\n"));
#undef DEBUG_TYPE #undef DEBUG_TYPE
#define DEBUG_TYPE "" #define DEBUG_TYPE ""
DOUT &lt;&lt; "No debug type (2)\n"; DEBUG(errs() &lt;&lt; "No debug type (2)\n");
</pre> </pre>
</div> </div>