Add DEBUG_WITH_TYPE as a clean alternative to tweaking DEBUG_TYPE.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 7 Aug 2009 23:48:59 +0000 (23:48 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 7 Aug 2009 23:48:59 +0000 (23:48 +0000)
commitc3c9239d76e2acb01dac8c72323a0b28fadebe4b
tree9aa7c034cf40476365e7a8028beff6c7bd7c2317
parente9ce5d5ef94c04a6316a5368a4927f9a34ae2a2f
Add DEBUG_WITH_TYPE as a clean alternative to tweaking DEBUG_TYPE.

This:
--
#undef DEBUG_TYPE
#define DEBUG_TYPE "foo"
DEBUG(...)
#undef DEBUG_TYPE
#define DEBUG_TYPE ""
--
becomes this:
--
DEBUG_WITH_TYPE("foo", ...)
--

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78435 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ProgrammersManual.html
include/llvm/Support/Debug.h