forked from OSchip/llvm-project
Conditionalize function only used in an assert to address -Wunused-function
This commit is contained in:
parent
6cda73e3c4
commit
632e15e766
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue