[WebAssembly] Suppress unused function warning for register name matcher

llvm-svn: 328112
This commit is contained in:
Reid Kleckner 2018-03-21 16:20:58 +00:00
parent ec2f878779
commit 18574836f9
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ using namespace llvm;
#define DEBUG_TYPE "wasm-asm-parser"
// TODO: TableGen generates this register name matcher, but it is not used
// anywhere. Mark it with the "unused" attribute to suppress warnings.
static unsigned LLVM_ATTRIBUTE_UNUSED MatchRegisterName(StringRef Name);
namespace {
// We store register types as SimpleValueType to retain SIMD layout