1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[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 5f0241c0af
commit 26f700f438

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