[ELF] Fix typo. NFC
authorFangrui Song <maskray@google.com>
Fri, 27 Apr 2018 05:50:40 +0000 (05:50 +0000)
committerFangrui Song <maskray@google.com>
Fri, 27 Apr 2018 05:50:40 +0000 (05:50 +0000)
llvm-svn: 331018

lld/ELF/Target.h
lld/ELF/Writer.cpp
lld/wasm/Symbols.h

index 5c4256a..c7d3906 100644 (file)
@@ -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.
index a5e0a44..c4ae8c7 100644 (file)
@@ -1598,7 +1598,7 @@ template <class ELFT> void Writer<ELFT>::finalizeSections() {
   }
 
   // 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;
 
index 237a2d6..1358082 100644 (file)
@@ -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),