[lld] r247637 - Simplify, NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 16:28:03 PDT 2015
Author: rafael
Date: Mon Sep 14 18:28:02 2015
New Revision: 247637
URL: http://llvm.org/viewvc/llvm-project?rev=247637&view=rev
Log:
Simplify, NFC.
Thanks to Rui for the suggestion.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=247637&r1=247636&r2=247637&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Mon Sep 14 18:28:02 2015
@@ -237,10 +237,8 @@ public:
*P++ = NumSymbols; // nbucket
*P++ = NumSymbols; // nchain
- std::vector<uint32_t> Buckets;
- Buckets.resize(NumSymbols);
- std::vector<uint32_t> Chains;
- Chains.resize(NumSymbols);
+ std::vector<uint32_t> Buckets(NumSymbols);
+ std::vector<uint32_t> Chains(NumSymbols);
for (unsigned I = 1; I < NumSymbols; ++I) {
uint32_t Hash = Hashes[I - 1] % NumSymbols;
More information about the llvm-commits
mailing list