namespace llvm {
namespace sys {
- inline bool littleEndianHost() {
+ inline bool isLittleEndianHost() {
union {
int i;
char c;
return c;
}
- inline bool bigEndianHost() {
- return !littleEndianHost();
+ inline bool isBigEndianHost() {
+ return !isLittleEndianHost();
}
- /// osName() - Return the name of the host operating system or "" if
- /// unknown.
- std::string osName();
+ /// getHostTriple() - Return the target triple of the running
+ /// system.
+ ///
+ /// The target triple is a string in the format of:
+ /// CPU_TYPE-VENDOR-OPERATING_SYSTEM
+ /// or
+ /// CPU_TYPE-VENDOR-KERNEL-OPERATING_SYSTEM
+ std::string getHostTriple();
- /// osVersion() - Return the operating system version as a string or
- /// "" if unknown.
- std::string osVersion();
}
}