Index: src/IceGlobalInits.h |
diff --git a/src/IceGlobalInits.h b/src/IceGlobalInits.h |
index d5974b41139e4e34f87a4811b11c4ad5668b30d9..082be3c37c0f63ae4b505c0b53ff7962560d0e39 100644 |
--- a/src/IceGlobalInits.h |
+++ b/src/IceGlobalInits.h |
@@ -61,6 +61,8 @@ public: |
/// Prints out the global declaration. |
virtual void dump(GlobalContext *Ctx, Ostream &Stream) const = 0; |
void dump(Ostream &Stream) const { |
+ if (!ALLOW_DUMP) |
+ return; |
GlobalContext *const Ctx = nullptr; |
dump(Ctx, Stream); |
} |
@@ -149,7 +151,8 @@ public: |
virtual SizeT getNumBytes() const = 0; |
virtual void dump(GlobalContext *Ctx, Ostream &Stream) const = 0; |
void dump(Ostream &Stream) const { |
- dump(nullptr, Stream); |
+ if (ALLOW_DUMP) |
+ dump(nullptr, Stream); |
} |
virtual void dumpType(Ostream &Stream) const; |