2009-08-15 06:14:07 +00:00
|
|
|
//===- MCSectionPIC16.h - PIC16-specific section representation -*- C++ -*-===//
|
2009-08-08 21:37:01 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2009-08-15 06:14:07 +00:00
|
|
|
// This file declares the MCSectionPIC16 class.
|
2009-08-08 21:37:01 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_PIC16SECTION_H
|
|
|
|
#define LLVM_PIC16SECTION_H
|
|
|
|
|
|
|
|
#include "llvm/MC/MCSection.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class MCSectionPIC16 : public MCSection {
|
2009-08-08 23:39:42 +00:00
|
|
|
std::string Name;
|
|
|
|
|
2009-08-13 00:26:52 +00:00
|
|
|
MCSectionPIC16(const StringRef &name, SectionKind K)
|
|
|
|
: MCSection(K), Name(name) {
|
|
|
|
}
|
|
|
|
|
2009-08-08 21:37:01 +00:00
|
|
|
public:
|
|
|
|
|
2009-08-08 23:39:42 +00:00
|
|
|
const std::string &getName() const { return Name; }
|
2009-08-21 23:08:09 +00:00
|
|
|
|
2009-08-08 23:39:42 +00:00
|
|
|
static MCSectionPIC16 *Create(const StringRef &Name,
|
|
|
|
SectionKind K, MCContext &Ctx);
|
2009-08-08 22:41:53 +00:00
|
|
|
|
2009-08-22 21:43:10 +00:00
|
|
|
virtual void PrintSwitchToSection(const MCAsmInfo &MAI,
|
2009-08-08 23:39:42 +00:00
|
|
|
raw_ostream &OS) const;
|
2009-08-08 21:37:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|