Rename addSectionChunk to addChunk now that it can handle any Chunk.

llvm-svn: 244919
This commit is contained in:
Rafael Espindola 2015-08-13 17:35:13 +00:00
parent 375a508234
commit 29e8d343e4
1 changed files with 3 additions and 4 deletions

View File

@ -45,7 +45,7 @@ public:
} }
void setVA(uintX_t); void setVA(uintX_t);
void setFileOffset(uintX_t); void setFileOffset(uintX_t);
void addSectionChunk(SectionChunk<ELFT> *C); void addChunk(Chunk *C);
std::vector<Chunk *> &getChunks() { return Chunks; } std::vector<Chunk *> &getChunks() { return Chunks; }
void writeHeaderTo(Elf_Shdr *SHdr); void writeHeaderTo(Elf_Shdr *SHdr);
StringRef getName() { return Name; } StringRef getName() { return Name; }
@ -128,8 +128,7 @@ template <class ELFT> void OutputSection<ELFT>::setFileOffset(uintX_t Off) {
Header.sh_offset = Off; Header.sh_offset = Off;
} }
template <class ELFT> template <class ELFT> void OutputSection<ELFT>::addChunk(Chunk *C) {
void OutputSection<ELFT>::addSectionChunk(SectionChunk<ELFT> *C) {
Chunks.push_back(C); Chunks.push_back(C);
uintX_t Off = Header.sh_size; uintX_t Off = Header.sh_size;
Off = RoundUpToAlignment(Off, C->getAlign()); Off = RoundUpToAlignment(Off, C->getAlign());
@ -185,7 +184,7 @@ template <class ELFT> void Writer<ELFT>::createSections() {
OutputSection<ELFT>(Key.Name, Key.sh_type, Key.sh_flags); OutputSection<ELFT>(Key.Name, Key.sh_type, Key.sh_flags);
OutputSections.push_back(Sec); OutputSections.push_back(Sec);
} }
Sec->addSectionChunk(C); Sec->addChunk(C);
} }
} }
} }