[lld] r284079 - Fix variable name. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 12 16:22:59 PDT 2016
Author: ruiu
Date: Wed Oct 12 18:22:59 2016
New Revision: 284079
URL: http://llvm.org/viewvc/llvm-project?rev=284079&view=rev
Log:
Fix variable name. NFC.
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=284079&r1=284078&r2=284079&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Wed Oct 12 18:22:59 2016
@@ -128,14 +128,14 @@ InputSectionBase<ELFT>::getRawCompressed
// Compressed sections without Elf_Chdr header contain this header
// instead. This is a GNU extension.
struct ZlibHeader {
- char magic[4]; // should be "ZLIB"
+ char Magic[4]; // Should be "ZLIB"
char Size[8]; // Uncompressed size in big-endian
};
if (Data.size() < sizeof(ZlibHeader))
fatal(getName(this) + ": corrupted compressed section");
auto *Hdr = reinterpret_cast<const ZlibHeader *>(Data.data());
- if (memcmp(Hdr->magic, "ZLIB", 4))
+ if (memcmp(Hdr->Magic, "ZLIB", 4))
fatal(getName(this) + ": broken ZLIB-compressed section");
return {Data.slice(sizeof(*Hdr)), read64be(Hdr->Size)};
}
More information about the llvm-commits
mailing list