summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-07 15:52:27 +0000
committerChris Lattner <sabre@nondot.org>2010-07-07 15:52:27 +0000
commitca97c92eb4aafe0064630c49826f0a9c568f9b8f (patch)
treea508ae33037c8210bd83dd57b0d4727a3c851604 /llvm/lib/Support
parentad65c6926bb96d96b394a657ef1ec6332623278d (diff)
downloadbcm5719-llvm-ca97c92eb4aafe0064630c49826f0a9c568f9b8f.tar.gz
bcm5719-llvm-ca97c92eb4aafe0064630c49826f0a9c568f9b8f.zip
add some triple for minix, patch by Kees van Reeuwijk from PR7582
llvm-svn: 107785
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Triple.cpp5
-rw-r--r--llvm/lib/Support/raw_ostream.cpp2
2 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 9796ca56f47..6a70449b56d 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -104,6 +104,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
case Solaris: return "solaris";
case Win32: return "win32";
case Haiku: return "haiku";
+ case Minix: return "minix";
}
return "<invalid>";
@@ -326,7 +327,9 @@ void Triple::Parse() const {
else if (OSName.startswith("win32"))
OS = Win32;
else if (OSName.startswith("haiku"))
- OS = Haiku;
+ OS = Haiku;
+ else if (OSName.startswith("minix"))
+ OS = Minix;
else
OS = UnknownOS;
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp
index bb72dfbecfd..8054ae63688 100644
--- a/llvm/lib/Support/raw_ostream.cpp
+++ b/llvm/lib/Support/raw_ostream.cpp
@@ -481,7 +481,7 @@ uint64_t raw_fd_ostream::seek(uint64_t off) {
}
size_t raw_fd_ostream::preferred_buffer_size() const {
-#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_MINIX)
+#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(__minix)
// Windows and Minix have no st_blksize.
assert(FD >= 0 && "File not yet open!");
struct stat statbuf;
OpenPOWER on IntegriCloud