[lld] r287951 - Fix typo.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 25 12:41:46 PST 2016


Author: ruiu
Date: Fri Nov 25 14:41:45 2016
New Revision: 287951

URL: http://llvm.org/viewvc/llvm-project?rev=287951&view=rev
Log:
Fix typo.

Modified:
    lld/trunk/ELF/InputSection.cpp

Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=287951&r1=287950&r2=287951&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Fri Nov 25 14:41:45 2016
@@ -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
   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;
 }




More information about the llvm-commits mailing list