MSP430Subtarget.cpp revision 224145
1193323Sed//===- MSP430Subtarget.cpp - MSP430 Subtarget Information ---------*- C++ -*-=// 2193323Sed// 3193323Sed// The LLVM Compiler Infrastructure 4193323Sed// 5193323Sed// This file is distributed under the University of Illinois Open Source 6193323Sed// License. See LICENSE.TXT for details. 7193323Sed// 8193323Sed//===----------------------------------------------------------------------===// 9193323Sed// 10224145Sdim// This file implements the MSP430 specific subclass of TargetSubtargetInfo. 11193323Sed// 12193323Sed//===----------------------------------------------------------------------===// 13193323Sed 14193323Sed#include "MSP430Subtarget.h" 15193323Sed#include "MSP430.h" 16224145Sdim#include "llvm/Target/TargetRegistry.h" 17193323Sed 18224145Sdim#define GET_SUBTARGETINFO_TARGET_DESC 19224145Sdim#define GET_SUBTARGETINFO_CTOR 20224145Sdim#include "MSP430GenSubtargetInfo.inc" 21224145Sdim 22193323Sedusing namespace llvm; 23193323Sed 24224145SdimMSP430Subtarget::MSP430Subtarget(const std::string &TT, 25224145Sdim const std::string &CPU, 26224145Sdim const std::string &FS) : 27224145Sdim MSP430GenSubtargetInfo(TT, CPU, FS) { 28224145Sdim std::string CPUName = "generic"; 29193323Sed 30193323Sed // Parse features string. 31224145Sdim ParseSubtargetFeatures(CPUName, FS); 32193323Sed} 33