diff options
author | Rui Ueyama <ruiu@google.com> | 2016-07-16 04:19:29 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-07-16 04:19:29 +0000 |
commit | 0c40496ea58cfa7a2cf5e4711fabc9b8c4854fcd (patch) | |
tree | b8ee6e4a82c47357ef58e97e9ea6a7c641290735 | |
parent | 7be0721239bd49675752a000c84727abee24db19 (diff) |
Simplify. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@275675 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | ELF/Writer.cpp | 5 |
1 files 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 <class ELFT> void Writer<ELFT>::writeSections() { } template <class ELFT> void Writer<ELFT>::writeBuildId() { - BuildIdSection<ELFT> *S = Out<ELFT>::BuildId; - if (!S) + if (!Out<ELFT>::BuildId) return; // Compute a hash of all sections except .debug_* sections. @@ -1275,7 +1274,7 @@ template <class ELFT> void Writer<ELFT>::writeBuildId() { Last = End; } Regions.push_back({Last, Start + FileSize}); - S->writeBuildId(Regions); + Out<ELFT>::BuildId->writeBuildId(Regions); } template void elf::writeResult<ELF32LE>(SymbolTable<ELF32LE> *Symtab); |