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

Unified Diff: src/IceCfg.cpp

Issue 1197863003: Subzero: Reduce the amount of #ifdef'd code. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Cleanup Created 5 years, 6 months 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
« no previous file with comments | « src/IceBuildDefs.h ('k') | src/IceCfgNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.cpp
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
index 72c912082cf1c266cad622292c93929f3d1b530e..659f4607ba71333a7a0841e8931cf0c38b025cc8 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -143,7 +143,7 @@ void Cfg::translate() {
// FunctionTimer conditionally pushes/pops a TimerMarker if
// TimeEachFunction is enabled.
std::unique_ptr<TimerMarker> FunctionTimer;
- if (ALLOW_DUMP) {
+ if (BuildDefs::dump()) {
const IceString &TimingFocusOn =
getContext()->getFlags().getTimingFocusOn();
const IceString &Name = getFunctionName();
@@ -532,7 +532,7 @@ void Cfg::doBranchOpt() {
// the target lowering class.
void Cfg::emitTextHeader(const IceString &MangledName, GlobalContext *Ctx,
const Assembler *Asm) {
- if (!ALLOW_DUMP)
+ if (!BuildDefs::dump())
return;
Ostream &Str = Ctx->getStrEmit();
Str << "\t.text\n";
@@ -551,7 +551,7 @@ void Cfg::emitTextHeader(const IceString &MangledName, GlobalContext *Ctx,
}
void Cfg::emit() {
- if (!ALLOW_DUMP)
+ if (!BuildDefs::dump())
return;
TimerMarker T(TimerStack::TT_emit, this);
if (Ctx->getFlags().getDecorateAsm()) {
@@ -579,7 +579,7 @@ void Cfg::emitIAS() {
// Dumps the IR with an optional introductory message.
void Cfg::dump(const IceString &Message) {
- if (!ALLOW_DUMP)
+ if (!BuildDefs::dump())
return;
if (!isVerbose())
return;
« no previous file with comments | « src/IceBuildDefs.h ('k') | src/IceCfgNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698