aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ArchiveWriter.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/ArchiveWriter.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/ArchiveWriter.cpp')
-rw-r--r--llvm/lib/Object/ArchiveWriter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Object/ArchiveWriter.cpp b/llvm/lib/Object/ArchiveWriter.cpp
index a67c657..2f70c9e 100644
--- a/llvm/lib/Object/ArchiveWriter.cpp
+++ b/llvm/lib/Object/ArchiveWriter.cpp
@@ -203,11 +203,12 @@ static bool isBSDLike(object::Archive::Kind Kind) {
template <class T>
static void print(raw_ostream &Out, object::Archive::Kind Kind, T Val) {
support::endian::write(Out, Val,
- isBSDLike(Kind) ? support::little : support::big);
+ isBSDLike(Kind) ? llvm::endianness::little
+ : llvm::endianness::big);
}
template <class T> static void printLE(raw_ostream &Out, T Val) {
- support::endian::write(Out, Val, support::little);
+ support::endian::write(Out, Val, llvm::endianness::little);
}
static void printRestOfMemberHeader(