Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: src/IceGlobalInits.h

Issue 686913005: Turn off dump/emit routines when building minimal subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698