[PATCH] D41170: Use dbgs() instead of errs() in docs for DEBUG()
Jonas Devlieghere via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 25 06:17:02 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL321444: [docs] Use dbgs() instead of errs() for DEBUG() (authored by JDevlieghere, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D41170?vs=126724&id=128140#toc
Repository:
rL LLVM
https://reviews.llvm.org/D41170
Files:
llvm/trunk/docs/ProgrammersManual.rst
Index: llvm/trunk/docs/ProgrammersManual.rst
===================================================================
--- llvm/trunk/docs/ProgrammersManual.rst
+++ llvm/trunk/docs/ProgrammersManual.rst
@@ -1040,7 +1040,7 @@
.. code-block:: c++
- DEBUG(errs() << "I am here!\n");
+ DEBUG(dbgs() << "I am here!\n");
Then you can run your pass like this:
@@ -1076,10 +1076,10 @@
.. code-block:: c++
#define DEBUG_TYPE "foo"
- DEBUG(errs() << "'foo' debug type\n");
+ DEBUG(dbgs() << "'foo' debug type\n");
#undef DEBUG_TYPE
#define DEBUG_TYPE "bar"
- DEBUG(errs() << "'bar' debug type\n"));
+ DEBUG(dbgs() << "'bar' debug type\n");
#undef DEBUG_TYPE
Then you can run your pass like this:
@@ -1120,8 +1120,8 @@
.. code-block:: c++
- DEBUG_WITH_TYPE("foo", errs() << "'foo' debug type\n");
- DEBUG_WITH_TYPE("bar", errs() << "'bar' debug type\n"));
+ DEBUG_WITH_TYPE("foo", dbgs() << "'foo' debug type\n");
+ DEBUG_WITH_TYPE("bar", dbgs() << "'bar' debug type\n");
.. _Statistic:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41170.128140.patch
Type: text/x-patch
Size: 1020 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171225/1f6390bb/attachment.bin>
More information about the llvm-commits
mailing list