LLVM API Documentation
00001 //===- MCSectionPIC16.h - PIC16-specific section representation -*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file declares the MCSectionPIC16 class. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef LLVM_PIC16SECTION_H 00015 #define LLVM_PIC16SECTION_H 00016 00017 #include "llvm/MC/MCSection.h" 00018 00019 namespace llvm { 00020 00021 class MCSectionPIC16 : public MCSection { 00022 std::string Name; 00023 00024 MCSectionPIC16(const StringRef &name, SectionKind K) 00025 : MCSection(K), Name(name) { 00026 } 00027 00028 public: 00029 00030 const std::string &getName() const { return Name; } 00031 00032 static MCSectionPIC16 *Create(const StringRef &Name, 00033 SectionKind K, MCContext &Ctx); 00034 00035 virtual void PrintSwitchToSection(const TargetAsmInfo &TAI, 00036 raw_ostream &OS) const; 00037 }; 00038 00039 } // end namespace llvm 00040 00041 #endif