aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WindowsResource.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-10-12 21:21:44 -0700
committerKazu Hirata <kazu@google.com>2023-10-12 21:21:45 -0700
commit4a0ccfa865437fe29ef2ecb18152df7694dddb7f (patch)
tree94df9df11f3172a15a522440a2175d6d1d9b6757 /llvm/lib/Object/WindowsResource.cpp
parent2045cca0c3d27f046c96257abfa11c769ce9b1ce (diff)
downloadllvm-4a0ccfa865437fe29ef2ecb18152df7694dddb7f.zip
llvm-4a0ccfa865437fe29ef2ecb18152df7694dddb7f.tar.gz
llvm-4a0ccfa865437fe29ef2ecb18152df7694dddb7f.tar.bz2
Use llvm::endianness::{big,little,native} (NFC)
Note that llvm::support::endianness has been renamed to llvm::endianness while becoming an enum class as opposed to an enum. This patch replaces support::{big,little,native} with llvm::endianness::{big,little,native}.
Diffstat (limited to 'llvm/lib/Object/WindowsResource.cpp')
-rw-r--r--llvm/lib/Object/WindowsResource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/WindowsResource.cpp b/llvm/lib/Object/WindowsResource.cpp
index 0764dc8..61ca49e 100644
--- a/llvm/lib/Object/WindowsResource.cpp
+++ b/llvm/lib/Object/WindowsResource.cpp
@@ -50,7 +50,7 @@ WindowsResource::WindowsResource(MemoryBufferRef Source)
: Binary(Binary::ID_WinRes, Source) {
size_t LeadingSize = WIN_RES_MAGIC_SIZE + WIN_RES_NULL_ENTRY_SIZE;
BBS = BinaryByteStream(Data.getBuffer().drop_front(LeadingSize),
- support::little);
+ llvm::endianness::little);
}
// static