diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2024-07-27 23:34:35 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2024-10-23 18:26:01 +0000 |
commit | 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583 (patch) | |
tree | 6cf5ab1f05330c6773b1f3f64799d56a9c7a1faa /contrib/llvm-project/clang/lib/Serialization/GlobalModuleIndex.cpp | |
parent | 6b9f7133aba44189d9625c352bc2c2a59baf18ef (diff) | |
parent | ac9a064cb179f3425b310fa2847f8764ac970a4d (diff) |
Diffstat (limited to 'contrib/llvm-project/clang/lib/Serialization/GlobalModuleIndex.cpp')
-rw-r--r-- | contrib/llvm-project/clang/lib/Serialization/GlobalModuleIndex.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/contrib/llvm-project/clang/lib/Serialization/GlobalModuleIndex.cpp b/contrib/llvm-project/clang/lib/Serialization/GlobalModuleIndex.cpp index dd4fc3e00905..1163943c5dff 100644 --- a/contrib/llvm-project/clang/lib/Serialization/GlobalModuleIndex.cpp +++ b/contrib/llvm-project/clang/lib/Serialization/GlobalModuleIndex.cpp @@ -13,7 +13,6 @@ #include "clang/Serialization/GlobalModuleIndex.h" #include "ASTReaderInternals.h" #include "clang/Basic/FileManager.h" -#include "clang/Lex/HeaderSearch.h" #include "clang/Serialization/ASTBitCodes.h" #include "clang/Serialization/ModuleFile.h" #include "clang/Serialization/PCHContainerOperations.h" @@ -89,10 +88,8 @@ public: static std::pair<unsigned, unsigned> ReadKeyDataLength(const unsigned char*& d) { using namespace llvm::support; - unsigned KeyLen = - endian::readNext<uint16_t, llvm::endianness::little, unaligned>(d); - unsigned DataLen = - endian::readNext<uint16_t, llvm::endianness::little, unaligned>(d); + unsigned KeyLen = endian::readNext<uint16_t, llvm::endianness::little>(d); + unsigned DataLen = endian::readNext<uint16_t, llvm::endianness::little>(d); return std::make_pair(KeyLen, DataLen); } @@ -113,8 +110,7 @@ public: data_type Result; while (DataLen > 0) { - unsigned ID = - endian::readNext<uint32_t, llvm::endianness::little, unaligned>(d); + unsigned ID = endian::readNext<uint32_t, llvm::endianness::little>(d); Result.push_back(ID); DataLen -= 4; } @@ -514,8 +510,8 @@ namespace { // The first bit indicates whether this identifier is interesting. // That's all we care about. using namespace llvm::support; - unsigned RawID = - endian::readNext<uint32_t, llvm::endianness::little, unaligned>(d); + IdentifierID RawID = + endian::readNext<IdentifierID, llvm::endianness::little>(d); bool IsInteresting = RawID & 0x01; return std::make_pair(k, IsInteresting); } |