From 0c40496ea58cfa7a2cf5e4711fabc9b8c4854fcd Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sat, 16 Jul 2016 04:19:29 +0000 Subject: Simplify. NFC. git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@275675 91177308-0d34-0410-b5e6-96231b3b80d8 --- ELF/Writer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ELF/Writer.cpp b/ELF/Writer.cpp index 322e9d11a..ee5ce5bb0 100644 --- a/ELF/Writer.cpp +++ b/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); -- cgit v1.2.3