projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5960a57
)
[GVNSink] Don't define operator<< in NDEBUG
author
James Molloy
<james.molloy@arm.com>
Thu, 25 May 2017 13:11:18 +0000
(13:11 +0000)
committer
James Molloy
<james.molloy@arm.com>
Thu, 25 May 2017 13:11:18 +0000
(13:11 +0000)
Without debug macros enabled, the raw_ostream operator<< overload
is unused.
llvm-svn: 303852
llvm/lib/Transforms/Scalar/GVNSink.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Scalar/GVNSink.cpp
b/llvm/lib/Transforms/Scalar/GVNSink.cpp
index
cd5b54b
..
a88c941
100644
(file)
--- a/
llvm/lib/Transforms/Scalar/GVNSink.cpp
+++ b/
llvm/lib/Transforms/Scalar/GVNSink.cpp
@@
-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
//===----------------------------------------------------------------------===//