mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
Delete dead code.
llvm-svn: 196366
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user