Introduce llvm::sys::getProcessTriple() function.
[oota-llvm.git] / include / llvm / Support / Host.h
index 139aab20a338c37eddc90cf1ba637a416e5ed1c4..3a4440573910948d5824cb089d25050ee27072b0 100644 (file)
@@ -42,6 +42,10 @@ namespace sys {
   ///   CPU_TYPE-VENDOR-KERNEL-OPERATING_SYSTEM
   std::string getDefaultTargetTriple();
 
+  /// getProcessTriple() - Return an appropriate target triple for generating
+  /// code to be loaded into the current process, e.g. when using the JIT.
+  std::string getProcessTriple();
+
   /// getHostCPUName - Get the LLVM name for the host CPU. The particular format
   /// of the name is target dependent, and suitable for passing as -mcpu to the
   /// target which matches the host.