Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add JITDUMPEXEC macro
For use in contexts where some printing method
should only be executed when "verbose" is true.
  • Loading branch information
SingleAccretion committed Jul 8, 2021
commit b6bf91cc084f60f5583963296674bd84c7c7f4c0
6 changes: 6 additions & 0 deletions src/coreclr/jit/jit.h
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,11 @@ const bool dspGCtbls = true;
if (JitTls::GetCompiler()->verbose) \
logf(__VA_ARGS__); \
}
#define JITDUMPEXEC(x) \
{ \
if (JitTls::GetCompiler()->verbose) \
x; \
}
#define JITLOG(x) \
{ \
JitLogEE x; \
Expand Down Expand Up @@ -521,6 +526,7 @@ const bool dspGCtbls = true;
#define VERBOSE JitTls::GetCompiler()->verbose
#else // !DEBUG
#define JITDUMP(...)
#define JITDUMPEXEC(x)
#define JITLOG(x)
#define JITLOG_THIS(t, x)
#define DBEXEC(flg, expr)
Expand Down