rename TAI -> MAI, being careful not to make MAILJMP instructions :)
[oota-llvm.git] / lib / Target / PIC16 / MCSectionPIC16.h
1 //===- MCSectionPIC16.h - PIC16-specific section representation -*- C++ -*-===//
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 declares the MCSectionPIC16 class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_PIC16SECTION_H
15 #define LLVM_PIC16SECTION_H
16
17 #include "llvm/MC/MCSection.h"
18
19 namespace llvm {
20
21   class MCSectionPIC16 : public MCSection {
22     std::string Name;
23     
24     MCSectionPIC16(const StringRef &name, SectionKind K)
25       : MCSection(K), Name(name) {
26     }
27     
28   public:
29     
30     const std::string &getName() const { return Name; }
31     
32     static MCSectionPIC16 *Create(const StringRef &Name, 
33                                   SectionKind K, MCContext &Ctx);
34     
35     virtual void PrintSwitchToSection(const MCAsmInfo &MAI,
36                                       raw_ostream &OS) const;
37   };
38
39 } // end namespace llvm
40
41 #endif