From ebc25292060dd641e7c10fd0e4768458b123a060 Mon Sep 17 00:00:00 2001 From: Greg McGary Date: Mon, 9 May 2022 20:41:08 -0700 Subject: [PATCH] [ELF] Move InputSectionBase::rawData member [NFC] --- lld/ELF/InputSection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/ELF/InputSection.h b/lld/ELF/InputSection.h index 912b969fe3c4..e9b1ffadf44f 100644 --- a/lld/ELF/InputSection.h +++ b/lld/ELF/InputSection.h @@ -149,6 +149,8 @@ public: bytesDropped -= num; } + mutable ArrayRef rawData; + void trim() { if (bytesDropped) { rawData = rawData.drop_back(bytesDropped); @@ -220,8 +222,6 @@ public: return llvm::makeArrayRef((const T *)rawData.data(), s / sizeof(T)); } - mutable ArrayRef rawData; - protected: template void parseCompressedHeader();