mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Start refactoring PIC16 TargetObjectFile code. Eventually, all the stuff from
PIC16Section will move to MCSectionPIC16. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80021 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,9 +19,9 @@
|
||||
using namespace llvm;
|
||||
|
||||
|
||||
MCSectionPIC16 *MCSectionPIC16::Create(const StringRef &Name,
|
||||
SectionKind K, MCContext &Ctx) {
|
||||
return new (Ctx) MCSectionPIC16(Name, K);
|
||||
MCSectionPIC16 *MCSectionPIC16::Create(const StringRef &Name, SectionKind K,
|
||||
int Address, MCContext &Ctx) {
|
||||
return new (Ctx) MCSectionPIC16(Name, K, Address);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,12 +38,12 @@ PIC16TargetObjectFile::PIC16TargetObjectFile()
|
||||
}
|
||||
|
||||
const MCSectionPIC16 *PIC16TargetObjectFile::
|
||||
getPIC16Section(const char *Name, SectionKind Kind) const {
|
||||
getPIC16Section(const char *Name, SectionKind Kind, int Address) const {
|
||||
MCSectionPIC16 *&Entry = SectionsByName[Name];
|
||||
if (Entry)
|
||||
return Entry;
|
||||
|
||||
return Entry = MCSectionPIC16::Create(Name, Kind, getContext());
|
||||
return Entry = MCSectionPIC16::Create(Name, Kind, Address, getContext());
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user