summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-08-13 17:35:13 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-08-13 17:35:13 +0000
commit29e8d343e48a524eaaff733653059bbc1862e980 (patch)
tree78e0852d9a60bc268d62c4a48df498c051e36df2
parent375a5082341cb12023f0efe1017da30a5ea57945 (diff)
downloadbcm5719-llvm-29e8d343e48a524eaaff733653059bbc1862e980.tar.gz
bcm5719-llvm-29e8d343e48a524eaaff733653059bbc1862e980.zip
Rename addSectionChunk to addChunk now that it can handle any Chunk.
llvm-svn: 244919
-rw-r--r--lld/ELF/Writer.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index c2662e59df0..42c751d88af 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -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<ELFT>::setFileOffset(uintX_t Off) {
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>::createSections() {
OutputSection<ELFT>(Key.Name, Key.sh_type, Key.sh_flags);
OutputSections.push_back(Sec);
}
- Sec->addSectionChunk(C);
+ Sec->addChunk(C);
}
}
}
OpenPOWER on IntegriCloud