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:
Sanjiv Gupta
2009-08-25 19:39:05 +00:00
parent 3ff36b7814
commit b9ef7648b8
3 changed files with 58 additions and 12 deletions

View File

@@ -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());
}