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

Unified Diff: src/IceInstARM32.h

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/IceInst.cpp ('k') | src/IceInstARM32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstARM32.h
diff --git a/src/IceInstARM32.h b/src/IceInstARM32.h
index 2ec1356ca56feb1c6c010463b8fc365026559c6a..8167ed45c60fdf3b3a9623c49dd0bcac00ed73a7 100644
--- a/src/IceInstARM32.h
+++ b/src/IceInstARM32.h
@@ -52,7 +52,7 @@ public:
using Operand::dump;
void dump(const Cfg *, Ostream &Str) const override {
- if (ALLOW_DUMP)
+ if (BuildDefs::dump())
Str << "<OperandARM32>";
}
@@ -347,7 +347,7 @@ public:
InstARM32UnaryopGPR(Func, Dest, Src, Predicate);
}
void emit(const Cfg *Func) const override {
- if (!ALLOW_DUMP)
+ if (!BuildDefs::dump())
return;
emitUnaryopGPR(Opcode, this, Func);
}
@@ -356,7 +356,7 @@ public:
llvm_unreachable("Not yet implemented");
}
void dump(const Cfg *Func) const override {
- if (!ALLOW_DUMP)
+ if (!BuildDefs::dump())
return;
Ostream &Str = Func->getContext()->getStrDump();
dumpDest(Func);
@@ -392,7 +392,7 @@ public:
InstARM32TwoAddrGPR(Func, Dest, Src, Predicate);
}
void emit(const Cfg *Func) const override {
- if (!ALLOW_DUMP)
+ if (!BuildDefs::dump())
return;
emitTwoAddr(Opcode, this, Func);
}
@@ -401,7 +401,7 @@ public:
llvm::report_fatal_error("Not yet implemented");
}
void dump(const Cfg *Func) const override {
- if (!ALLOW_DUMP)
+ if (!BuildDefs::dump())
return;
Ostream &Str = Func->getContext()->getStrDump();
dumpDest(Func);
@@ -444,7 +444,7 @@ public:
void emit(const Cfg *Func) const override;
void emitIAS(const Cfg *Func) const override;
void dump(const Cfg *Func) const override {
- if (!ALLOW_DUMP)
+ if (!BuildDefs::dump())
return;
Ostream &Str = Func->getContext()->getStrDump();
dumpOpcodePred(Str, Opcode, getDest()->getType());
@@ -484,7 +484,7 @@ public:
InstARM32ThreeAddrGPR(Func, Dest, Src1, Src2, Predicate, SetFlags);
}
void emit(const Cfg *Func) const override {
- if (!ALLOW_DUMP)
+ if (!BuildDefs::dump())
return;
emitThreeAddr(Opcode, this, Func, SetFlags);
}
@@ -493,7 +493,7 @@ public:
llvm::report_fatal_error("Not yet implemented");
}
void dump(const Cfg *Func) const override {
- if (!ALLOW_DUMP)
+ if (!BuildDefs::dump())
return;
Ostream &Str = Func->getContext()->getStrDump();
dumpDest(Func);
« no previous file with comments | « src/IceInst.cpp ('k') | src/IceInstARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698