blob: dfa21f580cb761109ea53c2e43c24660629a7bb8 [file] [log] [blame]
Daniel Dunbar56e29472009-07-15 06:35:19 +00001//===-- 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
Daniel Dunbar67038c12009-07-18 23:03:22 +000010#include "MSP430.h"
Chandler Carruth9fb823b2013-01-02 11:36:10 +000011#include "llvm/IR/Module.h"
Evan Cheng2bb40352011-08-24 18:08:43 +000012#include "llvm/Support/TargetRegistry.h"
Daniel Dunbar56e29472009-07-15 06:35:19 +000013using namespace llvm;
14
Mehdi Aminif42454b2016-10-09 23:00:34 +000015Target &llvm::getTheMSP430Target() {
16 static Target TheMSP430Target;
17 return TheMSP430Target;
18}
Daniel Dunbar56e29472009-07-15 06:35:19 +000019
Mehdi Aminif42454b2016-10-09 23:00:34 +000020extern "C" void LLVMInitializeMSP430TargetInfo() {
21 RegisterTarget<Triple::msp430> X(getTheMSP430Target(), "msp430",
Daniel Sanders725584e2017-11-15 23:55:44 +000022 "MSP430 [experimental]", "MSP430");
Daniel Dunbar56e29472009-07-15 06:35:19 +000023}