The "ShouldEmitMatchRegisterName" bit wasn't taking effect because the
WebAssembly target didn't point to the custom WebAssemblyAsmParser
record.
llvm-svn: 328155
#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
// Target Declaration
//===----------------------------------------------------------------------===//
-def WebAssembly : Target {
- let InstructionSet = WebAssemblyInstrInfo;
-}
-
def WebAssemblyAsmParser : AsmParser {
// The physical register names are not in the binary format or asm text
let ShouldEmitMatchRegisterName = 0;
}
+
+def WebAssembly : Target {
+ let InstructionSet = WebAssemblyInstrInfo;
+ let AssemblyParsers = [WebAssemblyAsmParser];
+}