mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
make isVirtualSection a virtual method on MCSection. Chris' suggestion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -83,11 +83,6 @@ public:
|
||||
void ApplyFixup(const MCFixup &Fixup, MCDataFragment &DF,
|
||||
uint64_t Value) const;
|
||||
|
||||
bool isVirtualSection(const MCSection &Section) const {
|
||||
const MCSectionELF &SE = static_cast<const MCSectionELF&>(Section);
|
||||
return SE.getType() == MCSectionELF::SHT_NOBITS;
|
||||
}
|
||||
|
||||
MCObjectWriter *createObjectWriter(raw_ostream &OS) const {
|
||||
return createELFObjectWriter(OS, /*Is64Bit=*/false,
|
||||
OSType, ELF::EM_ARM,
|
||||
@@ -118,13 +113,6 @@ public:
|
||||
void ApplyFixup(const MCFixup &Fixup, MCDataFragment &DF,
|
||||
uint64_t Value) const;
|
||||
|
||||
bool isVirtualSection(const MCSection &Section) const {
|
||||
const MCSectionMachO &SMO = static_cast<const MCSectionMachO&>(Section);
|
||||
return (SMO.getType() == MCSectionMachO::S_ZEROFILL ||
|
||||
SMO.getType() == MCSectionMachO::S_GB_ZEROFILL ||
|
||||
SMO.getType() == MCSectionMachO::S_THREAD_LOCAL_ZEROFILL);
|
||||
}
|
||||
|
||||
MCObjectWriter *createObjectWriter(raw_ostream &OS) const {
|
||||
// FIXME: Subtarget info should be derived. Force v7 for now.
|
||||
return createMachObjectWriter(OS, /*Is64Bit=*/false, MachO::CPUTypeARM,
|
||||
|
Reference in New Issue
Block a user