OSDN Git Service

use getHostTriple instead of getDefaultTargetTriple in getClosestTargetForJIT
[android-x86/external-llvm.git] / include / llvm / Support / Host.h
index b331016..b68a7ae 100644 (file)
@@ -33,6 +33,14 @@ namespace sys {
     return !isLittleEndianHost();
   }
 
+  /// getHostTriple() - Return the host where the compiler will be running.
+  ///
+  /// The host triple is a string in the format of:
+  ///   CPU_TYPE-VENDOR-OPERATING_SYSTEM
+  /// or
+  ///   CPU_TYPE-VENDOR-KERNEL-OPERATING_SYSTEM
+  std::string getHostTriple();
+
   /// getDefaultTargetTriple() - Return the default target triple the compiler
   /// has been configured to produce code for.
   ///