summaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-31 17:30:15 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-31 17:30:15 +0000
commitbe46c79501eda9b9cd7bbb02d7e3e88f0c599c50 (patch)
treeabedebe70d79ca2908b6ddb81da366b6c85361b2 /include/llvm/System
parent456e281c11914034558f9878f88688ab7873647a (diff)
downloadexternal_llvm-be46c79501eda9b9cd7bbb02d7e3e88f0c599c50.zip
external_llvm-be46c79501eda9b9cd7bbb02d7e3e88f0c599c50.tar.gz
external_llvm-be46c79501eda9b9cd7bbb02d7e3e88f0c599c50.tar.bz2
Add llvm::sys::getHostTriple and remove
llvm::sys::getOS{Name,Version}. Right now the implementation just derives from LLVM_HOSTTRIPLE (which is wrong, but it doesn't look like we have a define for the target triple). Ideally this routine would actually be able to compute the triple for targets we care about. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-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();
}
}