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

Unified Diff: src/IceTargetLowering.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: Use constexpr inline functions instead of macros 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
Index: src/IceTargetLowering.cpp
diff --git a/src/IceTargetLowering.cpp b/src/IceTargetLowering.cpp
index 7c93463ab96ac6c6e13609e627b45ac4c7dcec58..990bba836d8a7e225bc1a778c89c11014e9704c2 100644
--- a/src/IceTargetLowering.cpp
+++ b/src/IceTargetLowering.cpp
@@ -411,7 +411,7 @@ InstCall *TargetLowering::makeHelperCall(const IceString &Name, Variable *Dest,
}
void TargetLowering::emitWithoutPrefix(const ConstantRelocatable *C) const {
- if (!ALLOW_DUMP)
+ if (!buildAllowsDump())
return;
Ostream &Str = Ctx->getStrEmit();
if (C->getSuppressMangling())
@@ -427,7 +427,7 @@ void TargetLowering::emitWithoutPrefix(const ConstantRelocatable *C) const {
}
void TargetLowering::emit(const ConstantRelocatable *C) const {
- if (!ALLOW_DUMP)
+ if (!buildAllowsDump())
return;
Ostream &Str = Ctx->getStrEmit();
Str << getConstantPrefix();
@@ -472,7 +472,7 @@ IceString dataSectionSuffix(const IceString &SectionSuffix,
void TargetDataLowering::emitGlobal(const VariableDeclaration &Var,
const IceString &SectionSuffix) {
- if (!ALLOW_DUMP)
+ if (!buildAllowsDump())
return;
// If external and not initialized, this must be a cross test.
« src/IceDefs.h ('K') | « src/IceRegAlloc.cpp ('k') | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698