Index: src/PNaClTranslator.cpp |
diff --git a/src/PNaClTranslator.cpp b/src/PNaClTranslator.cpp |
index cb05493836d29c60ec0cc242b0d957ec79aaa27e..8e60db26103ca565a522b824170f9177a7b6472e 100644 |
--- a/src/PNaClTranslator.cpp |
+++ b/src/PNaClTranslator.cpp |
@@ -80,14 +80,14 @@ private: |
}; |
Ice::Ostream &operator<<(Ice::Ostream &Stream, const ExtendedType &Ty) { |
- if (!ALLOW_DUMP) |
+ if (!Ice::buildAllowsDump()) |
return Stream; |
Ty.dump(Stream); |
return Stream; |
} |
Ice::Ostream &operator<<(Ice::Ostream &Stream, ExtendedType::TypeKind Kind) { |
- if (!ALLOW_DUMP) |
+ if (!Ice::buildAllowsDump()) |
return Stream; |
Stream << "ExtendedType::"; |
switch (Kind) { |
@@ -136,7 +136,7 @@ public: |
}; |
void ExtendedType::dump(Ice::Ostream &Stream) const { |
- if (!ALLOW_DUMP) |
+ if (!Ice::buildAllowsDump()) |
return; |
Stream << Kind; |
switch (Kind) { |
@@ -1564,7 +1564,7 @@ private: |
void dumpVectorIndexCheckValue(raw_ostream &Stream, |
VectorIndexCheckValue Value) const { |
- if (!ALLOW_DUMP) |
+ if (!Ice::buildAllowsDump()) |
return; |
switch (Value) { |
case VectorIndexNotVector: |
@@ -2838,7 +2838,7 @@ void FunctionValuesymtabParser::setValueName(NaClBcIndexSize_t Index, |
return; |
Ice::Operand *Op = getFunctionParser()->getOperand(Index); |
if (Ice::Variable *V = dyn_cast<Ice::Variable>(Op)) { |
- if (ALLOW_DUMP) { |
+ if (Ice::buildAllowsDump()) { |
std::string Nm(Name.data(), Name.size()); |
V->setName(getFunctionParser()->getFunc(), Nm); |
} |
@@ -2856,7 +2856,7 @@ void FunctionValuesymtabParser::setBbName(NaClBcIndexSize_t Index, |
return; |
} |
std::string Nm(Name.data(), Name.size()); |
- if (ALLOW_DUMP) |
+ if (Ice::buildAllowsDump()) |
getFunctionParser()->getFunc()->getNodes()[Index]->setName(Nm); |
} |