Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 1a7d4ed

Browse files
committed
[LoopFusion] Fix another -Wunused-function in -DLLVM_ENABLE_ASSERTIONS=off build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370156 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 78868df commit 1a7d4ed

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/Transforms/Scalar/LoopFuse.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -294,16 +294,6 @@ struct FusionCandidate {
294294
}
295295
};
296296

297-
inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
298-
const FusionCandidate &FC) {
299-
if (FC.isValid())
300-
OS << FC.Preheader->getName();
301-
else
302-
OS << "<Invalid>";
303-
304-
return OS;
305-
}
306-
307297
struct FusionCandidateCompare {
308298
/// Comparison functor to sort two Control Flow Equivalent fusion candidates
309299
/// into dominance order.
@@ -355,6 +345,16 @@ using FusionCandidateSet = std::set<FusionCandidate, FusionCandidateCompare>;
355345
using FusionCandidateCollection = SmallVector<FusionCandidateSet, 4>;
356346

357347
#if !defined(NDEBUG)
348+
static llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
349+
const FusionCandidate &FC) {
350+
if (FC.isValid())
351+
OS << FC.Preheader->getName();
352+
else
353+
OS << "<Invalid>";
354+
355+
return OS;
356+
}
357+
358358
static llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
359359
const FusionCandidateSet &CandSet) {
360360
for (const FusionCandidate &FC : CandSet)

0 commit comments

Comments
 (0)