Fix MSVC "unknown pragma" warning. NFCI.

llvm-svn: 348256
This commit is contained in:
Simon Pilgrim 2018-12-04 12:31:52 +00:00
parent aa6086a64c
commit 6a088b2ce5
1 changed files with 6 additions and 0 deletions

View File

@ -11,8 +11,10 @@
// clang-format off // clang-format off
#if defined(__clang__)
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-function" #pragma clang diagnostic ignored "-Wunused-function"
#endif
static DecodeStatus s4_0ImmDecoder(MCInst &MI, unsigned tmp, static DecodeStatus s4_0ImmDecoder(MCInst &MI, unsigned tmp,
uint64_t, const void *Decoder) { uint64_t, const void *Decoder) {
@ -69,5 +71,9 @@ static DecodeStatus s4_2ImmDecoder(MCInst &MI, unsigned tmp,
signedDecoder<6>(MI, tmp, Decoder); signedDecoder<6>(MI, tmp, Decoder);
return MCDisassembler::Success; return MCDisassembler::Success;
} }
#if defined(__clang__)
#pragma clang diagnostic pop #pragma clang diagnostic pop
#endif
// clang-format on // clang-format on