From c755599997720a5d146aef3f177baa044e9846ce Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sat, 16 Jul 2016 04:19:29 +0000 Subject: [PATCH] Simplify. NFC. llvm-svn: 275675 --- lld/ELF/Writer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 322e9d1..ee5ce5b 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1257,8 +1257,7 @@ template void Writer::writeSections() { } template void Writer::writeBuildId() { - BuildIdSection *S = Out::BuildId; - if (!S) + if (!Out::BuildId) return; // Compute a hash of all sections except .debug_* sections. @@ -1275,7 +1274,7 @@ template void Writer::writeBuildId() { Last = End; } Regions.push_back({Last, Start + FileSize}); - S->writeBuildId(Regions); + Out::BuildId->writeBuildId(Regions); } template void elf::writeResult(SymbolTable *Symtab); -- 2.7.4