[lld] r244919 - Rename addSectionChunk to addChunk now that it can handle any Chunk.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 13 10:35:13 PDT 2015
Author: rafael
Date: Thu Aug 13 12:35:13 2015
New Revision: 244919
URL: http://llvm.org/viewvc/llvm-project?rev=244919&view=rev
Log:
Rename addSectionChunk to addChunk now that it can handle any Chunk.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=244919&r1=244918&r2=244919&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Aug 13 12:35:13 2015
@@ -45,7 +45,7 @@ public:
}
void setVA(uintX_t);
void setFileOffset(uintX_t);
- void addSectionChunk(SectionChunk<ELFT> *C);
+ void addChunk(Chunk *C);
std::vector<Chunk *> &getChunks() { return Chunks; }
void writeHeaderTo(Elf_Shdr *SHdr);
StringRef getName() { return Name; }
@@ -128,8 +128,7 @@ template <class ELFT> void OutputSection
Header.sh_offset = Off;
}
-template <class ELFT>
-void OutputSection<ELFT>::addSectionChunk(SectionChunk<ELFT> *C) {
+template <class ELFT> void OutputSection<ELFT>::addChunk(Chunk *C) {
Chunks.push_back(C);
uintX_t Off = Header.sh_size;
Off = RoundUpToAlignment(Off, C->getAlign());
@@ -185,7 +184,7 @@ template <class ELFT> void Writer<ELFT>:
OutputSection<ELFT>(Key.Name, Key.sh_type, Key.sh_flags);
OutputSections.push_back(Sec);
}
- Sec->addSectionChunk(C);
+ Sec->addChunk(C);
}
}
}
More information about the llvm-commits
mailing list