diff options
author | Rui Ueyama <ruiu@google.com> | 2016-11-25 20:41:45 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-11-25 20:41:45 +0000 |
commit | 1df9316922a565e8f5c9c9c3533a2a4eb9665a90 (patch) | |
tree | 5ed39a2803d9e50c240f5f081860d7941b998ccf | |
parent | c01321c6b8780400bb6eced15432c652eafe7e16 (diff) | |
download | bcm5719-llvm-1df9316922a565e8f5c9c9c3533a2a4eb9665a90.tar.gz bcm5719-llvm-1df9316922a565e8f5c9c9c3533a2a4eb9665a90.zip |
Fix typo.
llvm-svn: 287951
-rw-r--r-- | lld/ELF/InputSection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index 9b2feaac31e..07bb8fd2c35 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -707,13 +707,13 @@ std::vector<SectionPiece> MergeInputSection<ELFT>::splitStrings(ArrayRef<uint8_t> Data, size_t EntSize) { std::vector<SectionPiece> V; size_t Off = 0; - bool IsAlloca = this->Flags & SHF_ALLOC; + bool IsAlloc = this->Flags & SHF_ALLOC; while (!Data.empty()) { size_t End = findNull(Data, EntSize); if (End == StringRef::npos) fatal(toString(this) + ": string is not null terminated"); size_t Size = End + EntSize; - V.emplace_back(Off, !IsAlloca); + V.emplace_back(Off, !IsAlloc); Hashes.push_back(hash_value(toStringRef(Data.slice(0, Size)))); Data = Data.slice(Size); Off += Size; @@ -740,10 +740,10 @@ MergeInputSection<ELFT>::splitNonStrings(ArrayRef<uint8_t> Data, std::vector<SectionPiece> V; size_t Size = Data.size(); assert((Size % EntSize) == 0); - bool IsAlloca = this->Flags & SHF_ALLOC; + bool IsAlloc = this->Flags & SHF_ALLOC; for (unsigned I = 0, N = Size; I != N; I += EntSize) { Hashes.push_back(hash_value(toStringRef(Data.slice(I, EntSize)))); - V.emplace_back(I, !IsAlloca); + V.emplace_back(I, !IsAlloc); } return V; } |