File tree 3 files changed +5
-7
lines changed
3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 18
18
19
19
namespace glow {
20
20
21
- #ifndef NDEBUG
21
+ #if !defined( NDEBUG) && !defined(DISABLE_DEBUG_GLOW)
22
22
23
23
// / \returns true if \p type matches the activated debug type.
24
- bool isCurrentDebugType (const char *type);
24
+ bool isGlowCurrentDebugType (const char *type);
25
25
26
26
// / Macro to perform debug actions when TYPE is activated.
27
27
#define DEBUG_GLOW_WITH_TYPE (TYPE, X ) \
28
28
do { \
29
- if (glow::DebugFlag || glow::isCurrentDebugType (TYPE)) { \
29
+ if (glow::DebugFlag || glow::isGlowCurrentDebugType (TYPE)) { \
30
30
X; \
31
31
} \
32
32
} while (false )
Original file line number Diff line number Diff line change @@ -160,12 +160,10 @@ class LiveIntervalsInstructionNumbering {
160
160
};
161
161
} // namespace
162
162
163
- #ifndef NDEBUG
164
163
llvm::raw_ostream &operator <<(llvm::raw_ostream &os, const Interval &I) {
165
164
os << I.str ();
166
165
return os;
167
166
}
168
- #endif
169
167
170
168
// / Set of intervals for a single memory buffer. If there is only one write into
171
169
// / 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 {
41
41
// / Exported boolean set by -debug-glow option.
42
42
bool DebugFlag = false ;
43
43
44
- #ifndef NDEBUG
45
- bool isCurrentDebugType (const char *type) {
44
+ #if !defined( NDEBUG) && !defined(DISABLE_DEBUG_GLOW)
45
+ bool isGlowCurrentDebugType (const char *type) {
46
46
return std::find (DebugGlowOnly.begin (), DebugGlowOnly.end (), type) !=
47
47
DebugGlowOnly.end ();
48
48
}
You can’t perform that action at this time.
0 commit comments