diff options
| author | Nicholas Wilson <nicholas@nicholaswilson.me.uk> | 2018-03-28 12:53:29 +0000 |
|---|---|---|
| committer | Nicholas Wilson <nicholas@nicholaswilson.me.uk> | 2018-03-28 12:53:29 +0000 |
| commit | fc90b30dc2645f8b6a343b327761622f65429881 (patch) | |
| tree | 2a212f350e23f099a5a176c1e074b51a72ad1595 /lld/wasm/Writer.cpp | |
| parent | 202f8094372e51e120629f7a5d04993455d36ad7 (diff) | |
| download | bcm5719-llvm-fc90b30dc2645f8b6a343b327761622f65429881.tar.gz bcm5719-llvm-fc90b30dc2645f8b6a343b327761622f65429881.zip | |
[WebAssembly] Name Config members after commandline argument. NFC
This addresses a late review comment from D44427/rLLD328643
llvm-svn: 328700
Diffstat (limited to 'lld/wasm/Writer.cpp')
| -rw-r--r-- | lld/wasm/Writer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp index 69f3f8832ad..a98cfc6b7c9 100644 --- a/lld/wasm/Writer.cpp +++ b/lld/wasm/Writer.cpp @@ -127,7 +127,7 @@ void Writer::createImportSection() { uint32_t NumImports = ImportedSymbols.size(); if (Config->ImportMemory) ++NumImports; - if (Config->Table == ExposeAs::IMPORT) + if (Config->ImportTable) ++NumImports; if (NumImports == 0) @@ -152,7 +152,7 @@ void Writer::createImportSection() { writeImport(OS, Import); } - if (Config->Table == ExposeAs::IMPORT) { + if (Config->ImportTable) { uint32_t TableSize = kInitialTableOffset + IndirectFunctions.size(); WasmImport Import; Import.Module = "env"; @@ -236,7 +236,7 @@ void Writer::createGlobalSection() { } void Writer::createTableSection() { - if (Config->Table == ExposeAs::IMPORT) + if (Config->ImportTable) return; // Always output a table section (or table import), even if there are no @@ -259,7 +259,7 @@ void Writer::createTableSection() { void Writer::createExportSection() { bool ExportMemory = !Config->Relocatable && !Config->ImportMemory; - bool ExportTable = !Config->Relocatable && Config->Table == ExposeAs::EXPORT; + bool ExportTable = !Config->Relocatable && Config->ExportTable; uint32_t NumExports = (ExportMemory ? 1 : 0) + (ExportTable ? 1 : 0) + ExportedSymbols.size(); |

