blob: b7ebf94bc163a2526e7bc0bc9863a3c8153c0c90 [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 Gupta0e687712008-05-13 09:02:57 +000014#include "PIC16.h"
Sanjiv Gupta2010b3e2008-05-14 11:31:39 +000015#include "PIC16Subtarget.h"
Sanjiv Gupta0e687712008-05-13 09:02:57 +000016#include "PIC16GenSubtarget.inc"
17using namespace llvm;
18
19PIC16Subtarget::PIC16Subtarget(const TargetMachine &TM, const Module &M,
Sanjiv Gupta2010b3e2008-05-14 11:31:39 +000020 const std::string &FS)
Sanjiv Gupta0e687712008-05-13 09:02:57 +000021 :IsPIC16Old(false)
22{
23 std::string CPU = "generic";
24
25 // Parse features string.
26 ParseSubtargetFeatures(FS, CPU);
27}