[WebAssembly] Really disable wasm register name matcher

The "ShouldEmitMatchRegisterName" bit wasn't taking effect because the
WebAssembly target didn't point to the custom WebAssemblyAsmParser
record.

llvm-svn: 328155
This commit is contained in:
Reid Kleckner 2018-03-21 21:46:47 +00:00
parent c51dc906ea
commit 440219d53e
2 changed files with 5 additions and 8 deletions

View File

@ -32,10 +32,6 @@ 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

View File

@ -77,11 +77,12 @@ def : ProcessorModel<"bleeding-edge", NoSchedModel,
// 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];
}