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,14 +166,14 @@ 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 @@ 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) {