[lld] 8c58993 - fix comment typos to cycle bots

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 19 15:34:41 PDT 2022


Author: Nico Weber
Date: 2022-06-19T18:34:12-04:00
New Revision: 8c589939f538efefeca500acbb97d126163a79b4

URL: https://github.com/llvm/llvm-project/commit/8c589939f538efefeca500acbb97d126163a79b4
DIFF: https://github.com/llvm/llvm-project/commit/8c589939f538efefeca500acbb97d126163a79b4.diff

LOG: fix comment typos to cycle bots

Added: 
    

Modified: 
    lld/wasm/Symbols.h
    lld/wasm/Writer.cpp

Removed: 
    


################################################################################
diff  --git a/lld/wasm/Symbols.h b/lld/wasm/Symbols.h
index 31e4fa4805a8..c17b720a90fa 100644
--- a/lld/wasm/Symbols.h
+++ b/lld/wasm/Symbols.h
@@ -570,7 +570,7 @@ struct WasmSym {
   static DefinedFunction *applyGlobalRelocs;
 
   // __wasm_apply_global_tls_relocs
-  // Like applyGlobalRelocs but for globals that hold TLS addresess.  These
+  // Like applyGlobalRelocs but for globals that hold TLS addresses.  These
   // must be delayed until __wasm_init_tls.
   static DefinedFunction *applyGlobalTLSRelocs;
 

diff  --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp
index 3f9797ec5b34..e0d07e5e6228 100644
--- a/lld/wasm/Writer.cpp
+++ b/lld/wasm/Writer.cpp
@@ -542,8 +542,8 @@ void Writer::populateTargetFeatures() {
 done:
   // Normally we don't include bss segments in the binary.  In particular if
   // memory is not being imported then we can assume its zero initialized.
-  // In the case the memory is imported, we and we can use the memory.fill
-  // instrction than we can also avoid inluding the segments.
+  // In the case the memory is imported, and we can use the memory.fill
+  // instruction, then we can also avoid including the segments.
   if (config->importMemory && !allowed.count("bulk-memory"))
     config->emitBssSegments = true;
 
@@ -1169,7 +1169,7 @@ void Writer::createInitMemoryFunction() {
       if (needsPassiveInitialization(s)) {
         // For passive BSS segments we can simple issue a memory.fill(0).
         // For non-BSS segments we do a memory.init.  Both these
-        // instructions take as thier first argument the destination
+        // instructions take as their first argument the destination
         // address.
         writePtrConst(os, s->startVA, is64, "destination address");
         if (config->isPic) {
@@ -1255,7 +1255,7 @@ void Writer::createInitMemoryFunction() {
     for (const OutputSegment *s : segments) {
       if (needsPassiveInitialization(s) && !s->isBss) {
         // The TLS region should not be dropped since its is needed
-        // during the intiailizing of each thread (__wasm_init_tls).
+        // during the initialization of each thread (__wasm_init_tls).
         if (config->sharedMemory && s->isTLS())
           continue;
         // data.drop instruction


        


More information about the llvm-commits mailing list