Skip to content
Unverified Commit 86d1f4c5 authored by Kazu Hirata's avatar Kazu Hirata Committed by GitHub
Browse files

[Support, ADT] Move llvm::endianness to bit.h (#68280)

In C++20, std::endian comes from `<bit>`.  Following the same spirit,
this patch moves llvm::endianness and the endian detection logic to
bit.h.

Without this patch, llvm::endianness::native is defined in terms of
llvm::sys::IsBigEndianHost.  This patch reverses the dependency.
llvm::sys::IsBigEndianHost is now defined in terms of
llvm::endianness::native.
parent 1cf7b8f5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment