[lld] r250395 - Rename CAlloc since it allocates sections, not chunks.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 15 05:33:04 PDT 2015
Author: rafael
Date: Thu Oct 15 07:33:04 2015
New Revision: 250395
URL: http://llvm.org/viewvc/llvm-project?rev=250395&view=rev
Log:
Rename CAlloc since it allocates sections, not chunks.
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=250395&r1=250394&r2=250395&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Oct 15 07:33:04 2015
@@ -69,7 +69,7 @@ private:
std::unique_ptr<llvm::FileOutputBuffer> Buffer;
- SpecificBumpPtrAllocator<OutputSection<ELFT>> CAlloc;
+ SpecificBumpPtrAllocator<OutputSection<ELFT>> SecAlloc;
std::vector<OutputSectionBase<ELFT::Is64Bits> *> OutputSections;
unsigned getNumSections() const { return OutputSections.size() + 1; }
@@ -410,7 +410,7 @@ template <class ELFT> void Writer<ELFT>:
H->sh_type, OutFlags};
OutputSection<ELFT> *&Sec = Map[Key];
if (!Sec) {
- Sec = new (CAlloc.Allocate())
+ Sec = new (SecAlloc.Allocate())
OutputSection<ELFT>(Key.Name, Key.Type, Key.Flags);
OutputSections.push_back(Sec);
}
More information about the llvm-commits
mailing list