[lld] r331018 - [ELF] Fix typo. NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 26 22:50:40 PDT 2018


Author: maskray
Date: Thu Apr 26 22:50:40 2018
New Revision: 331018

URL: http://llvm.org/viewvc/llvm-project?rev=331018&view=rev
Log:
[ELF] Fix typo. NFC

Modified:
    lld/trunk/ELF/Target.h
    lld/trunk/ELF/Writer.cpp
    lld/trunk/wasm/Symbols.h

Modified: lld/trunk/ELF/Target.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.h?rev=331018&r1=331017&r2=331018&view=diff
==============================================================================
--- lld/trunk/ELF/Target.h (original)
+++ lld/trunk/ELF/Target.h Thu Apr 26 22:50:40 2018
@@ -48,7 +48,7 @@ public:
   }
 
   // Returns true if a relocation only uses the low bits of a value such that
-  // all those bits are in in the same page. For example, if the relocation
+  // all those bits are in the same page. For example, if the relocation
   // only uses the low 12 bits in a system with 4k pages. If this is true, the
   // bits will always have the same value at runtime and we don't have to emit
   // a dynamic relocation.

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=331018&r1=331017&r2=331018&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Apr 26 22:50:40 2018
@@ -1598,7 +1598,7 @@ template <class ELFT> void Writer<ELFT>:
   }
 
   // This is a bit of a hack. A value of 0 means undef, so we set it
-  // to 1 t make __ehdr_start defined. The section number is not
+  // to 1 to make __ehdr_start defined. The section number is not
   // particularly relevant.
   Out::ElfHeader->SectionIndex = 1;
 

Modified: lld/trunk/wasm/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Symbols.h?rev=331018&r1=331017&r2=331018&view=diff
==============================================================================
--- lld/trunk/wasm/Symbols.h (original)
+++ lld/trunk/wasm/Symbols.h Thu Apr 26 22:50:40 2018
@@ -168,7 +168,7 @@ protected:
 
 class DefinedData : public DataSymbol {
 public:
-  // Constructor for for regular data symbols originating from input files.
+  // Constructor for regular data symbols originating from input files.
   DefinedData(StringRef Name, uint32_t Flags, InputFile *F,
               InputSegment *Segment, uint32_t Offset, uint32_t Size)
       : DataSymbol(Name, DefinedDataKind, Flags, F), Segment(Segment),




More information about the llvm-commits mailing list