summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-10-12 23:22:59 +0000
committerRui Ueyama <ruiu@google.com>2016-10-12 23:22:59 +0000
commit5665af836f57d11dab121f8e4bbf3e2ba308b1dc (patch)
tree28636eaa856fa7f00cbcc85d42c6d48646c6d279
parent57ad5fe28816d85f8b0a36a7c923a1761d81cacf (diff)
downloadbcm5719-llvm-5665af836f57d11dab121f8e4bbf3e2ba308b1dc.tar.gz
bcm5719-llvm-5665af836f57d11dab121f8e4bbf3e2ba308b1dc.zip
Fix variable name. NFC.
llvm-svn: 284079
-rw-r--r--lld/ELF/InputSection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp
index 6ec654ed405..d826fae601f 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -128,14 +128,14 @@ InputSectionBase<ELFT>::getRawCompressedData(ArrayRef<uint8_t> Data) {
// 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)};
}
OpenPOWER on IntegriCloud