[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:
parent
c51dc906ea
commit
440219d53e
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue