[PATCH] D40691: [WebAssembly] Fix typos
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 16:53:51 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rLLD319506: [WebAssembly] Fix typos (authored by sbc).
Changed prior to commit:
https://reviews.llvm.org/D40691?vs=125051&id=125054#toc
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D40691
Files:
wasm/Driver.cpp
wasm/SymbolTable.cpp
wasm/Writer.cpp
Index: wasm/Driver.cpp
===================================================================
--- wasm/Driver.cpp
+++ wasm/Driver.cpp
@@ -136,7 +136,7 @@
// 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);
Index: wasm/SymbolTable.cpp
===================================================================
--- wasm/SymbolTable.cpp
+++ wasm/SymbolTable.cpp
@@ -166,22 +166,22 @@
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
DEBUG(dbgs() << "replacing existing weak symbol\n");
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;
Index: wasm/Writer.cpp
===================================================================
--- wasm/Writer.cpp
+++ wasm/Writer.cpp
@@ -409,7 +409,7 @@
}
}
-// 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 @@
}
// 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) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40691.125054.patch
Type: text/x-patch
Size: 2615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171201/0ef7a638/attachment.bin>
More information about the llvm-commits
mailing list