diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-02 01:17:28 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-02 01:17:28 +0000 |
commit | bb146720973e23a21015a86176bfb1cbf552fb10 (patch) | |
tree | 5a095c4f27d48351504fd66f0e895db738115e05 /lib/System/Host.cpp | |
parent | 0b3baaa7fb47e0cbbaad700ee2280fa148e15afd (diff) |
Add llvm::sys::{osName,osVersion} for retrieving operating system name
& version as strings.
- Win32 code is untested.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Host.cpp')
-rw-r--r-- | lib/System/Host.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/System/Host.cpp b/lib/System/Host.cpp new file mode 100644 index 0000000000..fd2d9527db --- /dev/null +++ b/lib/System/Host.cpp @@ -0,0 +1,24 @@ +//===-- Host.cpp - Implement OS Host Concept --------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header file implements the operating system Host concept. +// +//===----------------------------------------------------------------------===// + +#include "llvm/System/Host.h" +#include "llvm/Config/config.h" + +// Include the platform-specific parts of this class. +#ifdef LLVM_ON_UNIX +#include "Unix/Host.inc" +#endif +#ifdef LLVM_ON_WIN32 +#include "Win32/Host.inc" +#endif + |