1 //===-- LanaiTargetInfo.cpp - Lanai Target Implementation -----------------===// 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 #include "llvm/IR/Module.h" 11 #include "llvm/Support/TargetRegistry.h" 12 13 using namespace llvm; 14 15 namespace llvm { getTheLanaiTarget()16Target &getTheLanaiTarget() { 17 static Target TheLanaiTarget; 18 return TheLanaiTarget; 19 } 20 } // namespace llvm 21 LLVMInitializeLanaiTargetInfo()22extern "C" void LLVMInitializeLanaiTargetInfo() { 23 RegisterTarget<Triple::lanai> X(getTheLanaiTarget(), "lanai", "Lanai", 24 "Lanai"); 25 } 26