diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2017-10-16 00:29:47 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2017-10-16 00:29:47 +0000 |
commit | 746711914995ca2b66b0a814e69277f3851cda99 (patch) | |
tree | fc8a4bc22e05471e6e3d2b0e3faaa1cf8d8e0f99 | |
parent | 622e7535494d1a9f609728535c29a9b05ff3b086 (diff) | |
download | bcm5719-llvm-746711914995ca2b66b0a814e69277f3851cda99.tar.gz bcm5719-llvm-746711914995ca2b66b0a814e69277f3851cda99.zip |
[Hexagon] Add LLVM_ATTRIBUTE_UNUSED to operator<<, NFC
This should silence "unused function" warnings.
llvm-svn: 315883
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp b/llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp index cd90491fa0e..5b72fea34ca 100644 --- a/llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp +++ b/llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp @@ -404,6 +404,7 @@ namespace { using HCE = HexagonConstExtenders; + LLVM_ATTRIBUTE_UNUSED raw_ostream &operator<< (raw_ostream &OS, const OffsetRange &OR) { if (OR.Min > OR.Max) OS << '!'; @@ -418,6 +419,7 @@ namespace { const HexagonRegisterInfo &HRI; }; + LLVM_ATTRIBUTE_UNUSED raw_ostream &operator<< (raw_ostream &OS, const PrintRegister &P) { if (P.Rs.Reg != 0) OS << PrintReg(P.Rs.Reg, &P.HRI, P.Rs.Sub); @@ -433,6 +435,7 @@ namespace { const HexagonRegisterInfo &HRI; }; + LLVM_ATTRIBUTE_UNUSED raw_ostream &operator<< (raw_ostream &OS, const PrintExpr &P) { OS << "## " << (P.Ex.Neg ? "- " : "+ "); if (P.Ex.Rs.Reg != 0) @@ -450,12 +453,14 @@ namespace { const HexagonRegisterInfo &HRI; }; + LLVM_ATTRIBUTE_UNUSED raw_ostream &operator<< (raw_ostream &OS, const PrintInit &P) { OS << '[' << P.ExtI.first << ", " << PrintExpr(P.ExtI.second, P.HRI) << ']'; return OS; } + LLVM_ATTRIBUTE_UNUSED raw_ostream &operator<< (raw_ostream &OS, const HCE::ExtDesc &ED) { assert(ED.OpNum != -1u); const MachineBasicBlock &MBB = *ED.getOp().getParent()->getParent(); @@ -472,6 +477,7 @@ namespace { return OS; } + LLVM_ATTRIBUTE_UNUSED raw_ostream &operator<< (raw_ostream &OS, const HCE::ExtRoot &ER) { switch (ER.Kind) { case MachineOperand::MO_Immediate: @@ -505,6 +511,7 @@ namespace { return OS; } + LLVM_ATTRIBUTE_UNUSED raw_ostream &operator<< (raw_ostream &OS, const HCE::ExtValue &EV) { OS << HCE::ExtRoot(EV) << " off:" << EV.Offset; return OS; @@ -517,6 +524,7 @@ namespace { const HexagonRegisterInfo &HRI; }; + LLVM_ATTRIBUTE_UNUSED raw_ostream &operator<< (raw_ostream &OS, const PrintIMap &P) { OS << "{\n"; for (const std::pair<HCE::ExtenderInit,HCE::IndexList> &Q : P.IMap) { |