diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonDepDecoders.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonDepDecoders.h b/llvm/lib/Target/Hexagon/HexagonDepDecoders.h index 5a400742271..9f78412f45d 100644 --- a/llvm/lib/Target/Hexagon/HexagonDepDecoders.h +++ b/llvm/lib/Target/Hexagon/HexagonDepDecoders.h @@ -11,8 +11,10 @@ // clang-format off +#if defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunused-function" +#endif static DecodeStatus s4_0ImmDecoder(MCInst &MI, unsigned tmp, uint64_t, const void *Decoder) { @@ -69,5 +71,9 @@ static DecodeStatus s4_2ImmDecoder(MCInst &MI, unsigned tmp, signedDecoder<6>(MI, tmp, Decoder); return MCDisassembler::Success; } + +#if defined(__clang__) #pragma clang diagnostic pop +#endif + // clang-format on |

