aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System/Host.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/System/Host.h')
-rw-r--r--include/llvm/System/Host.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/llvm/System/Host.h b/include/llvm/System/Host.h
index 22e36e7..3c6aa9d 100644
--- a/include/llvm/System/Host.h
+++ b/include/llvm/System/Host.h
@@ -32,13 +32,15 @@ namespace sys {
return !isLittleEndianHost();
}
- /// getOSName() - Return the name of the host operating system or "" if
- /// unknown.
- std::string getOSName();
+ /// 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();
- /// getOSVersion() - Return the operating system version as a string or
- /// "" if unknown.
- std::string getOSVersion();
}
}