Chris Lattner | f7427e5 | 2009-08-08 21:37:01 +0000 | [diff] [blame] | 1 | //===- PIC16Section.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 MCSection class. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef LLVM_PIC16SECTION_H |
| 15 | #define LLVM_PIC16SECTION_H |
| 16 | |
| 17 | #include "llvm/MC/MCSection.h" |
Chris Lattner | f7427e5 | 2009-08-08 21:37:01 +0000 | [diff] [blame] | 18 | |
| 19 | namespace llvm { |
| 20 | |
| 21 | class MCSectionPIC16 : public MCSection { |
Chris Lattner | 93b6db3 | 2009-08-08 23:39:42 +0000 | [diff] [blame^] | 22 | std::string Name; |
| 23 | |
| 24 | MCSectionPIC16(const StringRef &name, SectionKind K, |
| 25 | MCContext &Ctx); |
Chris Lattner | f7427e5 | 2009-08-08 21:37:01 +0000 | [diff] [blame] | 26 | public: |
| 27 | |
Chris Lattner | 93b6db3 | 2009-08-08 23:39:42 +0000 | [diff] [blame^] | 28 | const std::string &getName() const { return Name; } |
Chris Lattner | 892e182 | 2009-08-08 22:41:53 +0000 | [diff] [blame] | 29 | |
Chris Lattner | 93b6db3 | 2009-08-08 23:39:42 +0000 | [diff] [blame^] | 30 | static MCSectionPIC16 *Create(const StringRef &Name, |
| 31 | SectionKind K, MCContext &Ctx); |
Chris Lattner | 892e182 | 2009-08-08 22:41:53 +0000 | [diff] [blame] | 32 | |
| 33 | virtual void PrintSwitchToSection(const TargetAsmInfo &TAI, |
Chris Lattner | 93b6db3 | 2009-08-08 23:39:42 +0000 | [diff] [blame^] | 34 | raw_ostream &OS) const; |
Chris Lattner | f7427e5 | 2009-08-08 21:37:01 +0000 | [diff] [blame] | 35 | }; |
Chris Lattner | f7427e5 | 2009-08-08 21:37:01 +0000 | [diff] [blame] | 36 | |
| 37 | } // end namespace llvm |
| 38 | |
| 39 | #endif |