From: Alexander Shaposhnikov Date: Tue, 13 Sep 2016 20:17:57 +0000 (+0000) Subject: Remove excessive padding from PTHWriter X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec0b188c06387c03d2c5c138efe1f47e8b678499;p=clang Remove excessive padding from PTHWriter The class PTHWriter is in lib/Frontend/CacheTokens.cpp inside the anonymous namespace. This diff changes the order of fields an removes excessive padding. Test plan: make -j8 check-clang Differential revision: https://reviews.llvm.org/D23902 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281385 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/CacheTokens.cpp b/lib/Frontend/CacheTokens.cpp index 1d24f12a93..d502e626bf 100644 --- a/lib/Frontend/CacheTokens.cpp +++ b/lib/Frontend/CacheTokens.cpp @@ -182,14 +182,14 @@ class PTHWriter { typedef llvm::DenseMap IDMap; typedef llvm::StringMap CachedStrsTy; - IDMap IM; raw_pwrite_stream &Out; Preprocessor& PP; - uint32_t idcount; + IDMap IM; + std::vector*> StrEntries; PTHMap PM; CachedStrsTy CachedStrs; + uint32_t idcount; Offset CurStrOffset; - std::vector*> StrEntries; //// Get the persistent id for the given IdentifierInfo*. uint32_t ResolveID(const IdentifierInfo* II);