forked from OSchip/llvm-project
[GVNSink] Don't define operator<< in NDEBUG
Without debug macros enabled, the raw_ostream operator<< overload is unused. llvm-svn: 303852
This commit is contained in:
parent
5960a57ef7
commit
2a237f19f1
|
@ -174,12 +174,14 @@ struct SinkingInstructionCandidate {
|
|||
}
|
||||
};
|
||||
|
||||
#ifndef NDEBUG
|
||||
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
|
||||
const SinkingInstructionCandidate &C) {
|
||||
OS << "<Candidate Cost=" << C.Cost << " #Blocks=" << C.NumBlocks
|
||||
<< " #Insts=" << C.NumInstructions << " #PHIs=" << C.NumPHIs << ">";
|
||||
return OS;
|
||||
}
|
||||
#endif
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
|
|
Loading…
Reference in New Issue