mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
WebAssembly: MCAsmInfo only has one syntax variant for now.
Summary: MCAsmInfo is set up with the default AssemblerDialect, which is zero. Subscribers: llvm-commits, sunfish, jfb Differential Revision: http://reviews.llvm.org/D11567 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243452 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b17a94cf1b
commit
6b43809281
@ -37,17 +37,15 @@ using namespace llvm;
|
||||
|
||||
static MCAsmInfo *createWebAssemblyMCAsmInfo(const MCRegisterInfo &MRI,
|
||||
const Triple &TT) {
|
||||
MCAsmInfo *MAI = new WebAssemblyMCAsmInfo(TT);
|
||||
return MAI;
|
||||
return new WebAssemblyMCAsmInfo(TT);
|
||||
}
|
||||
|
||||
static MCInstPrinter *
|
||||
createWebAssemblyMCInstPrinter(const Triple &T, unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI, const MCInstrInfo &MII,
|
||||
const MCRegisterInfo &MRI) {
|
||||
if (SyntaxVariant == 0 || SyntaxVariant == 1)
|
||||
return new WebAssemblyInstPrinter(MAI, MII, MRI);
|
||||
return nullptr;
|
||||
assert(SyntaxVariant == 0);
|
||||
return new WebAssemblyInstPrinter(MAI, MII, MRI);
|
||||
}
|
||||
|
||||
// Force static initialization.
|
||||
|
Loading…
Reference in New Issue
Block a user