Add LLVM_ATTRIBUTE_UNUSED to function currently just used in an assert
[oota-llvm.git] / lib / Target / Hexagon / InstPrinter / HexagonInstPrinter.cpp
index 9cf54b41c2fc2b0276001bcbff4c620cf5a82a1f..a526942315f9b8ca8dd554dee18c5ed8f97d0220 100644 (file)
@@ -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;