mirror of
https://github.com/intel/llvm.git
synced 2026-01-21 20:53:29 +08:00
[ELF] - Eliminate dead 'return' in EhFrameSection::finalizeContents(). NFC.
EhFrameSection::finalizeContents() is called from a single place: https://github.com/llvm-mirror/lld/blob/master/ELF/Writer.cpp#L1559 So code was dead. llvm-svn: 337287
This commit is contained in:
@@ -474,9 +474,7 @@ static void writeCieFde(uint8_t *Buf, ArrayRef<uint8_t> D) {
|
||||
}
|
||||
|
||||
void EhFrameSection::finalizeContents() {
|
||||
if (this->Size)
|
||||
return; // Already finalized.
|
||||
|
||||
assert(!this->Size); // Not finalized.
|
||||
size_t Off = 0;
|
||||
for (CieRecord *Rec : CieRecords) {
|
||||
Rec->Cie->OutputOff = Off;
|
||||
|
||||
Reference in New Issue
Block a user