mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Rename llvm::support::endianness to llvm::endianness
LLVM is gearing up to move to `std::endianness` and as part of that has moved `llvm::support::endianness` to `llvm::endianness` (bbdbcd83e6702f314d147a680247058a899ba261). Rename our uses.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "BCReadingExtras.h"
|
||||
#include "DeserializationErrors.h"
|
||||
#include "ModuleFileCoreTableInfo.h"
|
||||
#include "SerializationFormat.h"
|
||||
#include "swift/Basic/LangOptions.h"
|
||||
#include "swift/Parse/ParseVersion.h"
|
||||
#include "swift/Serialization/SerializedModuleLoader.h"
|
||||
@@ -1001,9 +1002,9 @@ ModuleFileSharedCore::readGroupTable(ArrayRef<uint64_t> Fields,
|
||||
StringRef BlobData) const {
|
||||
auto pMap = std::make_unique<llvm::DenseMap<unsigned, StringRef>>();
|
||||
auto Data = reinterpret_cast<const uint8_t *>(BlobData.data());
|
||||
unsigned GroupCount = endian::readNext<uint32_t, little, unaligned>(Data);
|
||||
unsigned GroupCount = readNext<uint32_t>(Data);
|
||||
for (unsigned I = 0; I < GroupCount; ++I) {
|
||||
auto RawSize = endian::readNext<uint32_t, little, unaligned>(Data);
|
||||
auto RawSize = readNext<uint32_t>(Data);
|
||||
auto RawText = StringRef(reinterpret_cast<const char *>(Data), RawSize);
|
||||
Data += RawSize;
|
||||
(*pMap)[I] = RawText;
|
||||
|
||||
Reference in New Issue
Block a user