forked from OSchip/llvm-project
Rewrite examples to use DEBUG instead of DOUT.
llvm-svn: 77042
This commit is contained in:
parent
ea23c3ba46
commit
04bbd9cd34
|
@ -448,7 +448,7 @@ tool) is run with the '<tt>-debug</tt>' command line argument:</p>
|
|||
|
||||
<div class="doc_code">
|
||||
<pre>
|
||||
DOUT << "I am here!\n";
|
||||
DEBUG(errs() << "I am here!\n");
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
|
@ -493,16 +493,16 @@ option as follows:</p>
|
|||
|
||||
<div class="doc_code">
|
||||
<pre>
|
||||
DOUT << "No debug type\n";
|
||||
#undef DEBUG_TYPE
|
||||
DEBUG(errs() << "No debug type\n");
|
||||
#define DEBUG_TYPE "foo"
|
||||
DOUT << "'foo' debug type\n";
|
||||
DEBUG(errs() << "'foo' debug type\n");
|
||||
#undef DEBUG_TYPE
|
||||
#define DEBUG_TYPE "bar"
|
||||
DOUT << "'bar' debug type\n";
|
||||
DEBUG(errs() << "'bar' debug type\n"));
|
||||
#undef DEBUG_TYPE
|
||||
#define DEBUG_TYPE ""
|
||||
DOUT << "No debug type (2)\n";
|
||||
DEBUG(errs() << "No debug type (2)\n");
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue