summaryrefslogtreecommitdiff
path: root/lib/Target/PIC16/MCSectionPIC16.h
blob: 048f2771b674fadfdf305aa5bc4a78d5419340f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//===- MCSectionPIC16.h - PIC16-specific section representation -*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file declares the MCSectionPIC16 class.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_PIC16SECTION_H
#define LLVM_PIC16SECTION_H

#include "llvm/MC/MCSection.h"

namespace llvm {

  class MCSectionPIC16 : public MCSection {
    std::string Name;
    
    MCSectionPIC16(const StringRef &name, SectionKind K)
      : MCSection(K), Name(name) {
    }
    
  public:
    
    const std::string &getName() const { return Name; }
    
    static MCSectionPIC16 *Create(const StringRef &Name, 
                                  SectionKind K, MCContext &Ctx);
    
    virtual void PrintSwitchToSection(const MCAsmInfo &TAI,
                                      raw_ostream &OS) const;
  };

} // end namespace llvm

#endif