Conditionalize function only used in an assert to address -Wunused-function

This commit is contained in:
David Blaikie 2021-06-29 16:39:05 -07:00
parent 6cda73e3c4
commit 632e15e766
2 changed files with 7 additions and 7 deletions

View File

@ -167,10 +167,6 @@ static inline std::string formatMixFlags(MixFlags F) {
return Str.str().str();
}
#else
static inline std::string formatMixFlags(MixFlags F);
#endif // NDEBUG
/// The results of the steps of an Implicit Conversion Sequence is saved in

View File

@ -3606,15 +3606,19 @@ LDVSSABlock *LDVSSABlockIterator::operator*() {
return Updater.getSSALDVBlock(*PredIt);
}
} // namespace
namespace llvm {
#ifndef NDEBUG
raw_ostream &operator<<(raw_ostream &out, const LDVSSAPhi &PHI) {
out << "SSALDVPHI " << PHI.PHIValNum;
return out;
}
#endif
} // namespace
namespace llvm {
/// Template specialization to give SSAUpdater access to CFG and value
/// information. SSAUpdater calls methods in these traits, passing in the
/// LDVSSAUpdater object, to learn about blocks and the values they define.