[llvm] r368624 - Title: Fix build warning for operator<< when using GCC 7.

Whitney Tsang via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 12 15:20:54 PDT 2019


Author: whitneyt
Date: Mon Aug 12 15:20:54 2019
New Revision: 368624

URL: http://llvm.org/viewvc/llvm-project?rev=368624&view=rev
Log:
Title: Fix build warning for operator<< when using GCC 7.
Authored By: etiotto
Differential Revision: https://reviews.llvm.org/D63459

Modified:
    llvm/trunk/include/llvm/Analysis/LoopCacheAnalysis.h

Modified: llvm/trunk/include/llvm/Analysis/LoopCacheAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/LoopCacheAnalysis.h?rev=368624&r1=368623&r2=368624&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/LoopCacheAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/LoopCacheAnalysis.h Mon Aug 12 15:20:54 2019
@@ -262,6 +262,9 @@ private:
   DependenceInfo &DI;
 };
 
+raw_ostream &operator<<(raw_ostream &OS, const IndexedReference &R);
+raw_ostream &operator<<(raw_ostream &OS, const CacheCost &CC);
+
 /// Printer pass for the \c CacheCost results.
 class LoopCachePrinterPass : public PassInfoMixin<LoopCachePrinterPass> {
   raw_ostream &OS;




More information about the llvm-commits mailing list