diff options
author | Fangrui Song <maskray@google.com> | 2019-07-16 08:08:17 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-07-16 08:08:17 +0000 |
commit | 08eee86502ec19a994bf339f440315d15053502a (patch) | |
tree | 0a325aa185a55b9ac6316cfc7e566df60ba71359 | |
parent | 5783902b44d55d3dae04f241e9540e4f03a1a082 (diff) |
[WebAssembly] Rename variale references in comments after VariableName -> variableName change
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@366192 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | wasm/InputFiles.cpp | 2 | ||||
-rw-r--r-- | wasm/MarkLive.cpp | 4 | ||||
-rw-r--r-- | wasm/SymbolTable.h | 2 | ||||
-rw-r--r-- | wasm/SyntheticSections.cpp | 4 | ||||
-rw-r--r-- | wasm/Writer.cpp | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/wasm/InputFiles.cpp b/wasm/InputFiles.cpp index b5233cf09..b4945469f 100644 --- a/wasm/InputFiles.cpp +++ b/wasm/InputFiles.cpp @@ -328,7 +328,7 @@ void ObjFile::parse(bool ignoreComdats) { for (const WasmEvent &e : wasmObj->events()) events.emplace_back(make<InputEvent>(types[e.Type.SigIndex], e, this)); - // Populate `Symbols` based on the WasmSymbols in the object. + // Populate `Symbols` based on the symbols in the object. symbols.reserve(wasmObj->getNumberOfSymbols()); for (const SymbolRef &sym : wasmObj->symbols()) { const WasmSymbol &wasmSym = wasmObj->getWasmSymbol(sym.getRawDataRefImpl()); diff --git a/wasm/MarkLive.cpp b/wasm/MarkLive.cpp index 703daf27e..9399156b7 100644 --- a/wasm/MarkLive.cpp +++ b/wasm/MarkLive.cpp @@ -46,9 +46,9 @@ void lld::wasm::markLive() { if (InputChunk *chunk = sym->getChunk()) q.push_back(chunk); - // The ctor functions are all referenced by the synthetic CallCtors + // The ctor functions are all referenced by the synthetic callCtors // function. However, this function does not contain relocations so we - // have to manually mark the ctors as live if CallCtors itself is live. + // have to manually mark the ctors as live if callCtors itself is live. if (sym == WasmSym::callCtors) { if (config->passiveSegments) enqueue(WasmSym::initMemory); diff --git a/wasm/SymbolTable.h b/wasm/SymbolTable.h index 33f02ddaf..530d5e864 100644 --- a/wasm/SymbolTable.h +++ b/wasm/SymbolTable.h @@ -98,7 +98,7 @@ private: InputFunction *replaceWithUnreachable(Symbol *sym, const WasmSignature &sig, StringRef debugName); - // Maps symbol names to index into the SymVector. -1 means that symbols + // Maps symbol names to index into the symVector. -1 means that symbols // is to not yet in the vector but it should have tracing enabled if it is // ever added. llvm::DenseMap<llvm::CachedHashStringRef, int> symMap; diff --git a/wasm/SyntheticSections.cpp b/wasm/SyntheticSections.cpp index 020d2c0b9..6d5d14ff4 100644 --- a/wasm/SyntheticSections.cpp +++ b/wasm/SyntheticSections.cpp @@ -474,8 +474,8 @@ void NameSection::writeBody() { SubSection sub(WASM_NAMES_FUNCTION); writeUleb128(sub.os, numNames(), "name count"); - // Names must appear in function index order. As it happens ImportedSymbols - // and InputFunctions are numbered in order with imported functions coming + // Names must appear in function index order. As it happens importedSymbols + // and inputFunctions are numbered in order with imported functions coming // first. for (const Symbol *s : out.importSec->importedSymbols) { if (auto *f = dyn_cast<FunctionSymbol>(s)) { diff --git a/wasm/Writer.cpp b/wasm/Writer.cpp index 5d81f2305..77a29a2d9 100644 --- a/wasm/Writer.cpp +++ b/wasm/Writer.cpp @@ -191,7 +191,7 @@ void Writer::writeSections() { // to each of the input data sections as well as the explicit stack region. // The default memory layout is as follows, from low to high. // -// - initialized data (starting at Config->GlobalBase) +// - initialized data (starting at Config->globalBase) // - BSS data (not currently implemented in llvm) // - explicit stack (Config->ZStackSize) // - heap start / unallocated |