Skip to content

Commit

Permalink
HexagonVectorLoopCarriedReuse.cpp: Apply LLVM_ATTRIBUTE_UNUSED. [-Wun…
Browse files Browse the repository at this point in the history
…used-function]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313947 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chapuni committed Sep 22, 2017
1 parent dea0799 commit 164f11b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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";
Expand Down

0 comments on commit 164f11b

Please sign in to comment.