diff options
| author | Rui Ueyama <ruiu@google.com> | 2015-06-07 22:00:28 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2015-06-07 22:00:28 +0000 |
| commit | c6b87363a1a030d8fc462cbe4b0dc08217a5368c (patch) | |
| tree | e1a1183dc77b9ad4fa145f5916add609abae5d2c /lld/COFF/DLL.cpp | |
| parent | b3aa5e71a05489b0f9a008963f4d4188709d8d7d (diff) | |
| download | bcm5719-llvm-c6b87363a1a030d8fc462cbe4b0dc08217a5368c.tar.gz bcm5719-llvm-c6b87363a1a030d8fc462cbe4b0dc08217a5368c.zip | |
COFF: Use named constants instead of sizeof().
llvm-svn: 239267
Diffstat (limited to 'lld/COFF/DLL.cpp')
| -rw-r--r-- | lld/COFF/DLL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/COFF/DLL.cpp b/lld/COFF/DLL.cpp index 58e9cf5ff88..024d190ee80 100644 --- a/lld/COFF/DLL.cpp +++ b/lld/COFF/DLL.cpp @@ -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()); |

