mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-01 07:30:31 +00:00
Add LLVM_ATTRIBUTE_UNUSED to function currently just used in an assert
Fixes break when -Wunused-function is used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219833 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
38537634e2
commit
f0f7ec31d4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user