diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-23 07:05:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-23 07:05:39 +0000 |
commit | a36b81d64f90f7cc7c946080d317322c3f4e3a0f (patch) | |
tree | 11c3b355b4250243322eadbce38090ac074343ff /include | |
parent | 4437ae213d5435390f0750213b53ec807c047f22 (diff) | |
download | external_llvm-a36b81d64f90f7cc7c946080d317322c3f4e3a0f.zip external_llvm-a36b81d64f90f7cc7c946080d317322c3f4e3a0f.tar.gz external_llvm-a36b81d64f90f7cc7c946080d317322c3f4e3a0f.tar.bz2 |
eliminate DOUT and make Debug.h not include Streams.h anymore, woo!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/Debug.h | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/include/llvm/Support/Debug.h b/include/llvm/Support/Debug.h index 17dca21..fce2500 100644 --- a/include/llvm/Support/Debug.h +++ b/include/llvm/Support/Debug.h @@ -26,8 +26,6 @@ #ifndef LLVM_SUPPORT_DEBUG_H #define LLVM_SUPPORT_DEBUG_H -#include "llvm/Support/Streams.h" - namespace llvm { // DebugFlag - This boolean is set to true if the '-debug' command line option @@ -40,7 +38,11 @@ extern bool DebugFlag; // specified on the command line, or if none was specified on the command line // with the -debug-only=X option. // +#ifndef NDEBUG bool isCurrentDebugType(const char *Type); +#else +#define isCurrentDebugType(X) (false) +#endif // DEBUG_WITH_TYPE macro - This macro should be used by passes to emit debug // information. In the '-debug' option is specified on the commandline, and if @@ -72,24 +74,7 @@ bool isCurrentDebugType(const char *Type); #endif #define DEBUG(X) DEBUG_WITH_TYPE(DEBUG_TYPE, X) - -/// getNullOutputStream - Return a null string that does not output -/// anything. This hides the static variable from other modules. -/// -OStream &getNullOutputStream(); - -/// getErrorOutputStream - Returns the error output stream (std::cerr). This -/// places the std::c* I/O streams into one .cpp file and relieves the whole -/// program from having to have hundreds of static c'tor/d'tors for them. -/// -OStream &getErrorOutputStream(const char *DebugType); - -#ifdef NDEBUG -#define DOUT llvm::getNullOutputStream() -#else -#define DOUT llvm::getErrorOutputStream(DEBUG_TYPE) -#endif - + } // End llvm namespace #endif |