[lld] r319506 - [WebAssembly] Fix typos
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 16:53:21 PST 2017
Author: sbc
Date: Thu Nov 30 16:53:21 2017
New Revision: 319506
URL: http://llvm.org/viewvc/llvm-project?rev=319506&view=rev
Log:
[WebAssembly] Fix typos
Patch by Nicholas Wilson
Differential Revision: https://reviews.llvm.org/D40691
Modified:
lld/trunk/wasm/Driver.cpp
lld/trunk/wasm/SymbolTable.cpp
lld/trunk/wasm/Writer.cpp
Modified: lld/trunk/wasm/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Driver.cpp?rev=319506&r1=319505&r2=319506&view=diff
==============================================================================
--- lld/trunk/wasm/Driver.cpp (original)
+++ lld/trunk/wasm/Driver.cpp Thu Nov 30 16:53:21 2017
@@ -136,7 +136,7 @@ static Optional<std::string> findFile(St
// Inject a new wasm global into the output binary with the given value.
// Wasm global are used in relocatable object files to model symbol imports
-// and exports. In the final exectuable the only use of wasm globals is the
+// and exports. In the final executable the only use of wasm globals is
// for the exlicit stack pointer (__stack_pointer).
static void addSyntheticGlobal(StringRef Name, int32_t Value) {
log("injecting global: " + Name);
Modified: lld/trunk/wasm/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/SymbolTable.cpp?rev=319506&r1=319505&r2=319506&view=diff
==============================================================================
--- lld/trunk/wasm/SymbolTable.cpp (original)
+++ lld/trunk/wasm/SymbolTable.cpp Thu Nov 30 16:53:21 2017
@@ -166,14 +166,14 @@ Symbol *SymbolTable::addDefined(InputFil
S->update(Kind, F, Sym, Segment, NewSig);
} else if (!S->isDefined()) {
// The existing symbol table entry is undefined. The new symbol replaces
- // it, after checkign the type matches
+ // it, after checking the type matches
DEBUG(dbgs() << "resolving existing undefined symbol: " << Sym->Name
<< "\n");
checkSymbolTypes(*S, *F, *Sym, NewSig);
S->update(Kind, F, Sym, Segment, NewSig);
} else if (Sym->isWeak()) {
// the new symbol is weak we can ignore it
- DEBUG(dbgs() << "existing symbol takes precensence\n");
+ DEBUG(dbgs() << "existing symbol takes precedence\n");
} else if (S->isWeak()) {
// the new symbol is not weak and the existing symbol is, so we replace
// it
@@ -181,7 +181,7 @@ Symbol *SymbolTable::addDefined(InputFil
checkSymbolTypes(*S, *F, *Sym, NewSig);
S->update(Kind, F, Sym, Segment, NewSig);
} else {
- // niether symbol is week. They conflict.
+ // neither symbol is week. They conflict.
reportDuplicate(S, F);
}
return S;
Modified: lld/trunk/wasm/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Writer.cpp?rev=319506&r1=319505&r2=319506&view=diff
==============================================================================
--- lld/trunk/wasm/Writer.cpp (original)
+++ lld/trunk/wasm/Writer.cpp Thu Nov 30 16:53:21 2017
@@ -409,7 +409,7 @@ void Writer::createRelocSections() {
}
}
-// Create the custome "linking" section containing linker metadata.
+// Create the custom "linking" section containing linker metadata.
// This is only created when relocatable output is requested.
void Writer::createLinkingSection() {
SyntheticSection *Section =
@@ -480,7 +480,7 @@ void Writer::writeSections() {
}
// Fix the memory layout of the output binary. This assigns memory offsets
-// to each of the intput data sections as well as the explicit stack region.
+// to each of the input data sections as well as the explicit stack region.
void Writer::layoutMemory() {
uint32_t MemoryPtr = 0;
if (!Config->Relocatable) {
More information about the llvm-commits
mailing list