1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

[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:
James Molloy 2017-05-25 13:11:18 +00:00
parent e219c46616
commit cc1d665bc2

View File

@ -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
//===----------------------------------------------------------------------===//