Add PrefixPrinter arguments to the dump routines for MachineFunction and
[oota-llvm.git] / include / llvm / System / Host.h
index 711959325d98b20c9ee783faf3cf06e2798618ca..3c6aa9dd7155bc24b2539ab937b89fcba20a5c76 100644 (file)
@@ -19,7 +19,7 @@
 namespace llvm {
 namespace sys {
 
-  inline bool littleEndianHost() {
+  inline bool isLittleEndianHost() {
     union {
       int i;
       char c;
@@ -28,17 +28,19 @@ namespace sys {
     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();
 }
 }