[llvm] r257439 - [WebAssembly] Register the MC subtarget info.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 11 19:30:07 PST 2016
Author: djg
Date: Mon Jan 11 21:30:06 2016
New Revision: 257439
URL: http://llvm.org/viewvc/llvm-project?rev=257439&view=rev
Log:
[WebAssembly] Register the MC subtarget info.
Modified:
llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.cpp?rev=257439&r1=257438&r2=257439&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.cpp Mon Jan 11 21:30:06 2016
@@ -73,6 +73,11 @@ static MCAsmBackend *createAsmBackend(co
return createWebAssemblyAsmBackend(TT);
}
+static MCSubtargetInfo *createMCSubtargetInfo(const Triple &TT, StringRef CPU,
+ StringRef FS) {
+ return createWebAssemblyMCSubtargetInfoImpl(TT, CPU, FS);
+}
+
// Force static initialization.
extern "C" void LLVMInitializeWebAssemblyTargetMC() {
for (Target *T : {&TheWebAssemblyTarget32, &TheWebAssemblyTarget64}) {
@@ -93,5 +98,8 @@ extern "C" void LLVMInitializeWebAssembl
// Register the ASM Backend.
TargetRegistry::RegisterMCAsmBackend(*T, createAsmBackend);
+
+ // Register the MC subtarget info.
+ TargetRegistry::RegisterMCSubtargetInfo(*T, createMCSubtargetInfo);
}
}
More information about the llvm-commits
mailing list