aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Win32/Host.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/System/Win32/Host.inc')
-rw-r--r--lib/System/Win32/Host.inc20
1 files changed, 3 insertions, 17 deletions
diff --git a/lib/System/Win32/Host.inc b/lib/System/Win32/Host.inc
index 4fabc78..18f00f8 100644
--- a/lib/System/Win32/Host.inc
+++ b/lib/System/Win32/Host.inc
@@ -17,21 +17,7 @@
using namespace llvm;
-std::string sys::getOSName() {
- return "Windows";
-}
-
-std::string sys::getOSVersion() {
- OSVERSIONINFO osvi;
-
- memset(&osvi, 0, sizeof(osvi));
- osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
-
- if (!GetVersionEx(&osvi))
- return "";
-
- char buf[64];
- sprintf(buf, "%d.%d", (int)osvi.dwMajorVersion, (int)osvi.dwMinorVersion);
-
- return buf;
+std::string sys::getHostTriple() {
+ // FIXME: Adapt to running version.
+ return LLVM_HOSTTRIPLE;
}