This repository was archived by the owner on Jul 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1818
1919namespace glow {
2020
21- #ifndef NDEBUG
21+ #if !defined( NDEBUG) && !defined(DISABLE_DEBUG_GLOW)
2222
2323// / \returns true if \p type matches the activated debug type.
24- bool isCurrentDebugType (const char *type);
24+ bool isGlowCurrentDebugType (const char *type);
2525
2626// / Macro to perform debug actions when TYPE is activated.
2727#define DEBUG_GLOW_WITH_TYPE (TYPE, X ) \
2828 do { \
29- if (glow::DebugFlag || glow::isCurrentDebugType (TYPE)) { \
29+ if (glow::DebugFlag || glow::isGlowCurrentDebugType (TYPE)) { \
3030 X; \
3131 } \
3232 } while (false )
Original file line number Diff line number Diff line change @@ -160,12 +160,10 @@ class LiveIntervalsInstructionNumbering {
160160};
161161} // namespace
162162
163- #ifndef NDEBUG
164163llvm::raw_ostream &operator <<(llvm::raw_ostream &os, const Interval &I) {
165164 os << I.str ();
166165 return os;
167166}
168- #endif
169167
170168// / Set of intervals for a single memory buffer. If there is only one write into
171169// / a memory buffer, it would contain a single interval. If there are multiple
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ namespace glow {
4141// / Exported boolean set by -debug-glow option.
4242bool DebugFlag = false ;
4343
44- #ifndef NDEBUG
45- bool isCurrentDebugType (const char *type) {
44+ #if !defined( NDEBUG) && !defined(DISABLE_DEBUG_GLOW)
45+ bool isGlowCurrentDebugType (const char *type) {
4646 return std::find (DebugGlowOnly.begin (), DebugGlowOnly.end (), type) !=
4747 DebugGlowOnly.end ();
4848}
You can’t perform that action at this time.
0 commit comments