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

Unified Diff: src/IceCfg.cpp

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/IceCfg.cpp
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
index b461d682e090b8e79993b87a328eef93b51c0144..950a3f8ee6e9572abf6fbe4f64399264ff9d4be2 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -396,6 +396,7 @@ void Cfg::doBranchOpt() {
// ======================== Dump routines ======================== //
void Cfg::emitTextHeader(const IceString &MangledName) {
+ // Note: Still used by emit IAS.
Ostream &Str = Ctx->getStrEmit();
Str << "\t.text\n";
if (Ctx->getFlags().FunctionSections)
@@ -412,6 +413,8 @@ void Cfg::emitTextHeader(const IceString &MangledName) {
}
void Cfg::emit() {
+ if (!ALLOW_DUMP)
+ return;
TimerMarker T(TimerStack::TT_emit, this);
if (Ctx->getFlags().DecorateAsm) {
renumberInstructions();
@@ -449,6 +452,8 @@ void Cfg::emitIAS() {
// Dumps the IR with an optional introductory message.
void Cfg::dump(const IceString &Message) {
+ if (!ALLOW_DUMP)
+ return;
if (!Ctx->isVerbose())
return;
Ostream &Str = Ctx->getStrDump();
« no previous file with comments | « Makefile.standalone ('k') | src/IceCfgNode.cpp » ('j') | tests_lit/reader_tests/alloca.ll » ('J')

Powered by Google App Engine
This is Rietveld 408576698