|
@ -2,6 +2,8 @@ |
|
|
|
|
|
|
|
|
#include <llvm/Support/Debug.h> |
|
|
#include <llvm/Support/Debug.h> |
|
|
|
|
|
|
|
|
|
|
|
#include "BuildInfo.gen.h" |
|
|
|
|
|
|
|
|
#if !defined(NDEBUG) // Debug
|
|
|
#if !defined(NDEBUG) // Debug
|
|
|
|
|
|
|
|
|
namespace dev |
|
|
namespace dev |
|
@ -12,7 +14,11 @@ namespace evmjit |
|
|
std::ostream& getLogStream(char const* _channel) |
|
|
std::ostream& getLogStream(char const* _channel) |
|
|
{ |
|
|
{ |
|
|
static std::ostream nullStream{nullptr}; |
|
|
static std::ostream nullStream{nullptr}; |
|
|
|
|
|
#if LLVM_DEBUG |
|
|
return (llvm::DebugFlag && llvm::isCurrentDebugType(_channel)) ? std::cerr : nullStream; |
|
|
return (llvm::DebugFlag && llvm::isCurrentDebugType(_channel)) ? std::cerr : nullStream; |
|
|
|
|
|
#else |
|
|
|
|
|
return (void)_channel, nullStream; |
|
|
|
|
|
#endif |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|