Delete dead code.

llvm-svn: 196366
This commit is contained in:
Rui Ueyama
2013-12-04 08:38:38 +00:00
parent c176b5d1d6
commit 8cb02d7aab

View File

@@ -302,10 +302,7 @@ public:
protected:
SectionChunk(StringRef sectionName, uint32_t characteristics);
void buildContents(const File &linkedFile,
bool (*isEligible)(const DefinedAtom *));
const uint32_t _characteristics;
llvm::object::coff_section _sectionHeader;
private:
@@ -655,22 +652,6 @@ SectionChunk::SectionChunk(StringRef sectionName, uint32_t characteristics)
_align = SECTOR_SIZE;
}
void SectionChunk::buildContents(const File &linkedFile,
bool (*isEligible)(const DefinedAtom *)) {
// Extract atoms from the linked file and append them to this section.
for (const DefinedAtom *atom : linkedFile.defined()) {
if (isEligible(atom))
appendAtom(atom);
}
// Now that we have a list of atoms that to be written in this section,
// and we know the size of the section. Let's write them to the section
// header. VirtualSize should be the size of the actual content, and
// SizeOfRawData should be aligned to the section alignment.
_sectionHeader.VirtualSize = _size;
_sectionHeader.SizeOfRawData = size();
}
llvm::object::coff_section
SectionChunk::createSectionHeader(StringRef sectionName,
uint32_t characteristics) const {