[llvm] r219833 - Add LLVM_ATTRIBUTE_UNUSED to function currently just used in an assert
Sid Manning
sidneym at codeaurora.org
Wed Oct 15 12:24:14 PDT 2014
Author: sidneym
Date: Wed Oct 15 14:24:14 2014
New Revision: 219833
URL: http://llvm.org/viewvc/llvm-project?rev=219833&view=rev
Log:
Add LLVM_ATTRIBUTE_UNUSED to function currently just used in an assert
Fixes break when -Wunused-function is used.
Modified:
llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp
Modified: llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp?rev=219833&r1=219832&r2=219833&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp Wed Oct 15 14:24:14 2014
@@ -62,6 +62,8 @@ static bool isExtended(uint64_t TSFlags)
return (TSFlags >> HexagonII::ExtendedPos) & HexagonII::ExtendedMask;
}
+// Currently just used in an assert statement
+static bool isExtendable(uint64_t TSFlags) LLVM_ATTRIBUTE_UNUSED;
// Return true if the instruction may be extended based on the operand value.
static bool isExtendable(uint64_t TSFlags) {
return (TSFlags >> HexagonII::ExtendablePos) & HexagonII::ExtendableMask;
More information about the llvm-commits
mailing list