X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FXCore%2FXCoreSubtarget.cpp;h=8cfb77089f319c6574a44d41aaa3d95e677a56e8;hb=8e0f67dcec577760e3bdc36f0377c6f43e1894d8;hp=5fb1eaad54b61772a0b2b7f80577f90eee59872a;hpb=3be03406c9c3b2075d5ae416499af2f15f703d6f;p=oota-llvm.git diff --git a/lib/Target/XCore/XCoreSubtarget.cpp b/lib/Target/XCore/XCoreSubtarget.cpp index 5fb1eaad54b..8cfb77089f3 100644 --- a/lib/Target/XCore/XCoreSubtarget.cpp +++ b/lib/Target/XCore/XCoreSubtarget.cpp @@ -1,4 +1,4 @@ -//===- XCoreSubtarget.cpp - XCore Subtarget Information -----------*- C++ -*-=// +//===-- XCoreSubtarget.cpp - XCore Subtarget Information ------------------===// // // The LLVM Compiler Infrastructure // @@ -7,21 +7,24 @@ // //===----------------------------------------------------------------------===// // -// This file implements the XCore specific subclass of TargetSubtarget. +// This file implements the XCore specific subclass of TargetSubtargetInfo. // //===----------------------------------------------------------------------===// #include "XCoreSubtarget.h" #include "XCore.h" -#include "XCoreGenSubtarget.inc" +#include "llvm/Support/TargetRegistry.h" + +#define GET_SUBTARGETINFO_TARGET_DESC +#define GET_SUBTARGETINFO_CTOR +#include "XCoreGenSubtargetInfo.inc" + using namespace llvm; -XCoreSubtarget::XCoreSubtarget(const std::string &TT, const std::string &FS) - : IsXS1A(false), - IsXS1B(false) -{ - std::string CPU = "xs1a-generic"; +void XCoreSubtarget::anchor() { } - // Parse features string. - ParseSubtargetFeatures(FS, CPU); +XCoreSubtarget::XCoreSubtarget(const std::string &TT, + const std::string &CPU, const std::string &FS) + : XCoreGenSubtargetInfo(TT, CPU, FS) +{ }