diff options
Diffstat (limited to 'COFF/DLL.h')
-rw-r--r-- | COFF/DLL.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/COFF/DLL.h b/COFF/DLL.h index a298271e2c0da..ce0ee01c4a3df 100644 --- a/COFF/DLL.h +++ b/COFF/DLL.h @@ -1,9 +1,8 @@ //===- DLL.h ----------------------------------------------------*- C++ -*-===// // -// The LLVM Linker -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -22,45 +21,46 @@ namespace coff { // call create() to populate the chunk vectors. class IdataContents { public: - void add(DefinedImportData *Sym) { Imports.push_back(Sym); } - bool empty() { return Imports.empty(); } + void add(DefinedImportData *sym) { imports.push_back(sym); } + bool empty() { return imports.empty(); } void create(); - std::vector<DefinedImportData *> Imports; - std::vector<Chunk *> Dirs; - std::vector<Chunk *> Lookups; - std::vector<Chunk *> Addresses; - std::vector<Chunk *> Hints; - std::vector<Chunk *> DLLNames; + std::vector<DefinedImportData *> imports; + std::vector<Chunk *> dirs; + std::vector<Chunk *> lookups; + std::vector<Chunk *> addresses; + std::vector<Chunk *> hints; + std::vector<Chunk *> dllNames; }; // Windows-specific. // DelayLoadContents creates all chunks for the delay-load DLL import table. class DelayLoadContents { public: - void add(DefinedImportData *Sym) { Imports.push_back(Sym); } - bool empty() { return Imports.empty(); } - void create(Defined *Helper); + void add(DefinedImportData *sym) { imports.push_back(sym); } + bool empty() { return imports.empty(); } + void create(Defined *helper); std::vector<Chunk *> getChunks(); std::vector<Chunk *> getDataChunks(); - ArrayRef<Chunk *> getCodeChunks() { return Thunks; } + ArrayRef<Chunk *> getCodeChunks() { return thunks; } - uint64_t getDirRVA() { return Dirs[0]->getRVA(); } + uint64_t getDirRVA() { return dirs[0]->getRVA(); } uint64_t getDirSize(); private: - Chunk *newThunkChunk(DefinedImportData *S, Chunk *Dir); + Chunk *newThunkChunk(DefinedImportData *s, Chunk *tailMerge); + Chunk *newTailMergeChunk(Chunk *dir); - Defined *Helper; - std::vector<DefinedImportData *> Imports; - std::vector<Chunk *> Dirs; - std::vector<Chunk *> ModuleHandles; - std::vector<Chunk *> Addresses; - std::vector<Chunk *> Names; - std::vector<Chunk *> HintNames; - std::vector<Chunk *> Thunks; - std::vector<Chunk *> DLLNames; + Defined *helper; + std::vector<DefinedImportData *> imports; + std::vector<Chunk *> dirs; + std::vector<Chunk *> moduleHandles; + std::vector<Chunk *> addresses; + std::vector<Chunk *> names; + std::vector<Chunk *> hintNames; + std::vector<Chunk *> thunks; + std::vector<Chunk *> dllNames; }; // Windows-specific. @@ -68,11 +68,11 @@ private: class EdataContents { public: EdataContents(); - std::vector<Chunk *> Chunks; + std::vector<Chunk *> chunks; - uint64_t getRVA() { return Chunks[0]->getRVA(); } + uint64_t getRVA() { return chunks[0]->getRVA(); } uint64_t getSize() { - return Chunks.back()->getRVA() + Chunks.back()->getSize() - getRVA(); + return chunks.back()->getRVA() + chunks.back()->getSize() - getRVA(); } }; |