From b1c73532ee8997fe5dfbeb7d223027bdf99758a0 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 9 Dec 2023 14:28:42 +0100 Subject: Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1. --- llvm/lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp') diff --git a/llvm/lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp b/llvm/lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp index e921ae1e7d8d..0ec8662f42ff 100644 --- a/llvm/lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp +++ b/llvm/lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp @@ -49,7 +49,7 @@ DebugHSection llvm::CodeViewYAML::fromDebugH(ArrayRef DebugH) { assert(DebugH.size() >= 8); assert((DebugH.size() - 8) % 8 == 0); - BinaryStreamReader Reader(DebugH, llvm::support::little); + BinaryStreamReader Reader(DebugH, llvm::endianness::little); DebugHSection DHS; cantFail(Reader.readInteger(DHS.Magic)); cantFail(Reader.readInteger(DHS.Version)); @@ -69,7 +69,7 @@ ArrayRef llvm::CodeViewYAML::toDebugH(const DebugHSection &DebugH, uint32_t Size = 8 + 8 * DebugH.Hashes.size(); uint8_t *Data = Alloc.Allocate(Size); MutableArrayRef Buffer(Data, Size); - BinaryStreamWriter Writer(Buffer, llvm::support::little); + BinaryStreamWriter Writer(Buffer, llvm::endianness::little); cantFail(Writer.writeInteger(DebugH.Magic)); cantFail(Writer.writeInteger(DebugH.Version)); -- cgit v1.3