]> granicus.if.org Git - llvm/commitdiff
HexagonVectorLoopCarriedReuse.cpp: Apply LLVM_ATTRIBUTE_UNUSED. [-Wunused-function]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 22 Sep 2017 01:01:33 +0000 (01:01 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 22 Sep 2017 01:01:33 +0000 (01:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313947 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp

index 18dfd2aced17b07c5871b9c2bfda1c43bf044f2c..77dc5f5eee7406db85b922ced72c38b38cfbbfb5 100644 (file)
@@ -183,6 +183,7 @@ namespace {
    friend raw_ostream &operator<< (raw_ostream &OS, const DepChain &D);
   };
 
+  LLVM_ATTRIBUTE_UNUSED
   raw_ostream &operator<<(raw_ostream &OS, const DepChain &D) {
     const ChainOfDependences &CD = D.Chain;
     int ChainSize = CD.size();
@@ -206,6 +207,7 @@ namespace {
     bool isDefined() { return Inst2Replace != nullptr; }
   };
   typedef struct ReuseValue ReuseValue;
+  LLVM_ATTRIBUTE_UNUSED
   raw_ostream &operator<<(raw_ostream &OS, const ReuseValue &RU) {
     OS << "** ReuseValue ***\n";
     OS << "Instruction to Replace: " << *(RU.Inst2Replace) << "\n";