Added "DOUT" macro. This is used as a replacement for the std::cerr
authorBill Wendling <isanbard@gmail.com>
Fri, 17 Nov 2006 00:49:12 +0000 (00:49 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 17 Nov 2006 00:49:12 +0000 (00:49 +0000)
commit1ea783f13a83ce9402f543fbc2367d125dc26f91
tree3bde233e2cdf48097b3d860b2d6e3f1d1f83dff9
parente28a12a3b8d42543bb291d5aacf0b65a95dd3653
Added "DOUT" macro. This is used as a replacement for the std::cerr
stream. It centralizes the use of std::cerr so that static c'tor/d'tors
aren't scattered around all over the place. The way to use it is like this:

       DOUT << "This is a status line: " << Var << "\n";

If "-debug" is specified, it will print. Otherwise, it'll not print. If
NDEBUG is defined, the DOUT does nothing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31798 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Debug.h
lib/Support/Debug.cpp