| OLD | NEW |
| (Empty) |
| 1 //===-- JSBackendMCTargetDesc.cpp - JS Backend Target Descriptions --------===// | |
| 2 // | |
| 3 // The LLVM Compiler Infrastructure | |
| 4 // | |
| 5 // This file is distributed under the University of Illinois Open Source | |
| 6 // License. See LICENSE.TXT for details. | |
| 7 // | |
| 8 //===----------------------------------------------------------------------===// | |
| 9 // | |
| 10 // This file provides asm.js specific target descriptions. | |
| 11 // | |
| 12 //===----------------------------------------------------------------------===// | |
| 13 | |
| 14 #include "JSBackendMCTargetDesc.h" | |
| 15 #include "llvm/MC/MCCodeGenInfo.h" | |
| 16 #include "llvm/Support/TargetRegistry.h" | |
| 17 using namespace llvm; | |
| 18 | |
| 19 static MCCodeGenInfo *createJSBackendMCCodeGenInfo(StringRef Triple, Reloc::Mode
l RM, | |
| 20 CodeModel::Model CM, | |
| 21 CodeGenOpt::Level OL) { | |
| 22 MCCodeGenInfo *X = new MCCodeGenInfo(); | |
| 23 X->InitMCCodeGenInfo(RM, CM, OL); | |
| 24 return X; | |
| 25 } | |
| 26 | |
| 27 // Force static initialization. | |
| 28 extern "C" void LLVMInitializeJSBackendTargetMC() { | |
| 29 // Register the MC codegen info. | |
| 30 RegisterMCCodeGenInfoFn C(TheJSBackendTarget, createJSBackendMCCodeGenInfo); | |
| 31 } | |
| OLD | NEW |