//===-- Endian.h ------------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLDB_UTILITY_ENDIAN_H #define LLDB_UTILITY_ENDIAN_H #include "lldb/lldb-enumerations.h" #include <cstdint> namespace lldb_private { namespace endian { static union EndianTest { … } const endianTest = …; inline lldb::ByteOrder InlHostByteOrder() { … } // ByteOrder const InlHostByteOrder = (ByteOrder)endianTest.bytes[0]; } } #endif // LLDB_UTILITY_ENDIAN_H