forked from OSchip/llvm-project
[ELF] - Eliminate dead code. NFC.
Code was dead because at the moment of BssSection creation it can never have a parent. Also, code simply does not make sence as alignment adjastment happens when BssSection is added to its parent later. llvm-svn: 337276
This commit is contained in:
parent
950fb5708e
commit
7da3f388e3
|
|
@ -328,8 +328,6 @@ void BuildIdSection::computeHash(
|
|||
BssSection::BssSection(StringRef Name, uint64_t Size, uint32_t Alignment)
|
||||
: SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_NOBITS, Alignment, Name) {
|
||||
this->Bss = true;
|
||||
if (OutputSection *Sec = getParent())
|
||||
Sec->Alignment = std::max(Sec->Alignment, Alignment);
|
||||
this->Size = Size;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue