From 1f3e2b296602ca23c276e41439868b41c8de41ad Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 27 Apr 2018 05:50:40 +0000 Subject: [PATCH] [ELF] Fix typo. NFC llvm-svn: 331018 --- lld/ELF/Target.h | 2 +- lld/ELF/Writer.cpp | 2 +- lld/wasm/Symbols.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/ELF/Target.h b/lld/ELF/Target.h index 5c4256a..c7d3906 100644 --- a/lld/ELF/Target.h +++ b/lld/ELF/Target.h @@ -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. diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index a5e0a44..c4ae8c7 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1598,7 +1598,7 @@ template void Writer::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; diff --git a/lld/wasm/Symbols.h b/lld/wasm/Symbols.h index 237a2d6..1358082 100644 --- a/lld/wasm/Symbols.h +++ b/lld/wasm/Symbols.h @@ -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), -- 2.7.4