mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-08 23:55:03 +00:00
892e182393
2. Move section switch printing to MCSection virtual method which takes a TAI. This eliminates textual formatting stuff from TLOF. 3. Eliminate SwitchToSectionDirective, getSectionFlagsAsString, and TLOFELF::AtIsCommentChar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78510 91177308-0d34-0410-b5e6-96231b3b80d8
44 lines
1.3 KiB
C++
44 lines
1.3 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"
|
|
#include "llvm/MC/MCContext.h"
|
|
#include "llvm/Support/raw_ostream.h"
|
|
|
|
namespace llvm {
|
|
|
|
class MCSectionPIC16 : public MCSection {
|
|
MCSectionPIC16(const StringRef &Name, bool IsDirective, SectionKind K,
|
|
MCContext &Ctx) : MCSection(Name, IsDirective, K, Ctx) {}
|
|
public:
|
|
|
|
static MCSectionPIC16 *Create(const StringRef &Name, bool IsDirective,
|
|
SectionKind K, MCContext &Ctx) {
|
|
return new (Ctx) MCSectionPIC16(Name, IsDirective, K, Ctx);
|
|
}
|
|
|
|
|
|
virtual void PrintSwitchToSection(const TargetAsmInfo &TAI,
|
|
raw_ostream &OS) const {
|
|
OS << getName() << '\n';
|
|
}
|
|
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
#endif
|