1 //===-- MSP430TargetInfo.cpp - MSP430 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 "MSP430.h" 11 #include "llvm/IR/Module.h" 12 #include "llvm/Support/TargetRegistry.h" 13 using namespace llvm; 14 getTheMSP430Target()15Target &llvm::getTheMSP430Target() { 16 static Target TheMSP430Target; 17 return TheMSP430Target; 18 } 19 LLVMInitializeMSP430TargetInfo()20extern "C" void LLVMInitializeMSP430TargetInfo() { 21 RegisterTarget<Triple::msp430> X(getTheMSP430Target(), "msp430", 22 "MSP430 [experimental]", "MSP430"); 23 } 24