Paweł Bylica
10 years ago
2 changed files with 29 additions and 8 deletions
@ -1,13 +1,21 @@ |
|||
#include "Utils.h" |
|||
|
|||
#include <llvm/Support/Debug.h> |
|||
|
|||
#if !defined(NDEBUG) // Debug
|
|||
|
|||
namespace dev |
|||
{ |
|||
namespace eth |
|||
namespace evmjit |
|||
{ |
|||
namespace jit |
|||
{ |
|||
|
|||
|
|||
std::ostream& getLogStream(char const* _channel) |
|||
{ |
|||
static std::ostream nullStream{nullptr}; |
|||
return (llvm::DebugFlag && llvm::isCurrentDebugType(_channel)) ? std::cerr : nullStream; |
|||
} |
|||
|
|||
} |
|||
} |
|||
|
|||
#endif |
|||
|
Loading…
Reference in new issue