[lld] r239267 - COFF: Use named constants instead of sizeof().

Rui Ueyama ruiu at google.com
Sun Jun 7 15:00:28 PDT 2015


Author: ruiu
Date: Sun Jun  7 17:00:28 2015
New Revision: 239267

URL: http://llvm.org/viewvc/llvm-project?rev=239267&view=rev
Log:
COFF: Use named constants instead of sizeof().

Modified:
    lld/trunk/COFF/DLL.cpp

Modified: lld/trunk/COFF/DLL.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/DLL.cpp?rev=239267&r1=239266&r2=239267&view=diff
==============================================================================
--- lld/trunk/COFF/DLL.cpp (original)
+++ lld/trunk/COFF/DLL.cpp Sun Jun  7 17:00:28 2015
@@ -183,8 +183,8 @@ void IdataContents::create() {
       Hints.push_back(std::move(C));
     }
     // Terminate with null values.
-    Lookups.push_back(make_unique<NullChunk>(sizeof(uint64_t)));
-    Addresses.push_back(make_unique<NullChunk>(sizeof(uint64_t)));
+    Lookups.push_back(make_unique<NullChunk>(LookupChunkSize));
+    Addresses.push_back(make_unique<NullChunk>(LookupChunkSize));
 
     for (int I = 0, E = Syms.size(); I < E; ++I)
       Syms[I]->setLocation(Addresses[Base + I].get());





More information about the llvm-commits mailing list