blob: 33fc3fb169945fcc39901e07e78e644ea7acc814 [file] [log] [blame]
Sanjiv Gupta0e687712008-05-13 09:02:57 +00001//===- PIC16Subtarget.cpp - PIC16 Subtarget Information -------------------===//
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// This file implements the PIC16 specific subclass of TargetSubtarget.
11//
12//===----------------------------------------------------------------------===//
13
Sanjiv Gupta2010b3e2008-05-14 11:31:39 +000014#include "PIC16Subtarget.h"
Sanjiv Gupta0e687712008-05-13 09:02:57 +000015#include "PIC16GenSubtarget.inc"
Sanjiv Guptab1b5ffd2008-11-19 11:00:54 +000016
Sanjiv Gupta0e687712008-05-13 09:02:57 +000017using namespace llvm;
18
Daniel Dunbar3be03402009-08-02 22:11:08 +000019PIC16Subtarget::PIC16Subtarget(const std::string &TT, const std::string &FS,
Sanjiv Guptab1b5ffd2008-11-19 11:00:54 +000020 bool Cooper)
21 :IsCooper(Cooper)
Sanjiv Gupta0e687712008-05-13 09:02:57 +000022{
23 std::string CPU = "generic";
24
25 // Parse features string.
26 ParseSubtargetFeatures(FS, CPU);
27}