1 //===- llvm/System/Host.h - Host machine characteristics --------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Methods for querying the nature of the host machine.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_SYSTEM_HOST_H
15 #define LLVM_SYSTEM_HOST_H
22 inline bool littleEndianHost() {
31 inline bool bigEndianHost() {
32 return !littleEndianHost();
35 /// osName() - Return the name of the host operating system or "" if
39 /// osVersion() - Return the operating system version as a string or
41 std::string osVersion();