mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-29 13:29:28 +00:00
This totally optimizes PIC16 sections by not having an 'isdirective' bit anymore!! ;-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78517 91177308-0d34-0410-b5e6-96231b3b80d8
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
//===- PIC16Section.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 MCSection 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,
|
|
MCContext &Ctx);
|
|
public:
|
|
|
|
const std::string &getName() const { return Name; }
|
|
|
|
static MCSectionPIC16 *Create(const StringRef &Name,
|
|
SectionKind K, MCContext &Ctx);
|
|
|
|
virtual void PrintSwitchToSection(const TargetAsmInfo &TAI,
|
|
raw_ostream &OS) const;
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
#endif
|