From: Alex Lorenz Date: Wed, 31 Jul 2019 00:12:00 +0000 (+0000) Subject: NFCI, optimize layout of FileEntry X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=321bac621ed3cf88fdb4c157fb9e82b7dbad7b47;p=clang NFCI, optimize layout of FileEntry The reordering of the UID field makes the size of a FileEntry 8 bytes smaller on 64bit platforms. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367371 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/FileManager.h b/include/clang/Basic/FileManager.h index 96983475f4..f38664ab29 100644 --- a/include/clang/Basic/FileManager.h +++ b/include/clang/Basic/FileManager.h @@ -64,8 +64,8 @@ class FileEntry { off_t Size; // File size in bytes. time_t ModTime; // Modification time of file. const DirectoryEntry *Dir; // Directory file lives in. - unsigned UID; // A unique (small) ID for the file. llvm::sys::fs::UniqueID UniqueID; + unsigned UID; // A unique (small) ID for the file. bool IsNamedPipe; bool IsValid; // Is this \c FileEntry initialized and valid?