[lld] r197008 - [PECOFF] Writer: Move SectionChunk's ctor inline.
Rui Ueyama
ruiu at google.com
Tue Dec 10 20:36:19 PST 2013
Author: ruiu
Date: Tue Dec 10 22:36:19 2013
New Revision: 197008
URL: http://llvm.org/viewvc/llvm-project?rev=197008&view=rev
Log:
[PECOFF] Writer: Move SectionChunk's ctor inline.
Modified:
lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
Modified: lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp?rev=197008&r1=197007&r2=197008&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp Tue Dec 10 22:36:19 2013
@@ -259,7 +259,9 @@ public:
static bool classof(const Chunk *c) { return c->getKind() == kindSection; }
protected:
- SectionChunk(StringRef sectionName, uint32_t characteristics);
+ SectionChunk(StringRef sectionName, uint32_t characteristics)
+ : AtomChunk(kindSection), _sectionName(sectionName),
+ _characteristics(characteristics) {}
private:
StringRef _sectionName;
@@ -588,10 +590,6 @@ void SectionChunk::appendAtom(const Defi
_size += atom->size();
}
-SectionChunk::SectionChunk(StringRef sectionName, uint32_t characteristics)
- : AtomChunk(kindSection), _sectionName(sectionName),
- _characteristics(characteristics) {}
-
void GenericSectionChunk::write(uint8_t *buffer) {
if (_atomLayouts.empty())
return;
More information about the llvm-commits
mailing list