1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

add some triple for minix, patch by Kees van Reeuwijk from PR7582

llvm-svn: 107785
This commit is contained in:
Chris Lattner 2010-07-07 15:52:27 +00:00
parent f60a8be1d0
commit 96566c78ef
4 changed files with 8 additions and 4 deletions

View File

@ -100,7 +100,8 @@ public:
Psp, Psp,
Solaris, Solaris,
Win32, Win32,
Haiku Haiku,
Minix
}; };
private: private:

View File

@ -104,6 +104,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
case Solaris: return "solaris"; case Solaris: return "solaris";
case Win32: return "win32"; case Win32: return "win32";
case Haiku: return "haiku"; case Haiku: return "haiku";
case Minix: return "minix";
} }
return "<invalid>"; return "<invalid>";
@ -326,7 +327,9 @@ void Triple::Parse() const {
else if (OSName.startswith("win32")) else if (OSName.startswith("win32"))
OS = Win32; OS = Win32;
else if (OSName.startswith("haiku")) else if (OSName.startswith("haiku"))
OS = Haiku; OS = Haiku;
else if (OSName.startswith("minix"))
OS = Minix;
else else
OS = UnknownOS; OS = UnknownOS;

View File

@ -481,7 +481,7 @@ uint64_t raw_fd_ostream::seek(uint64_t off) {
} }
size_t raw_fd_ostream::preferred_buffer_size() const { 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. // Windows and Minix have no st_blksize.
assert(FD >= 0 && "File not yet open!"); assert(FD >= 0 && "File not yet open!");
struct stat statbuf; struct stat statbuf;

View File

@ -310,7 +310,7 @@ Program::Wait(unsigned secondsToWait,
// fact of having a handler at all causes the wait below to return with EINTR, // fact of having a handler at all causes the wait below to return with EINTR,
// unlike if we used SIG_IGN. // unlike if we used SIG_IGN.
if (secondsToWait) { if (secondsToWait) {
#ifndef __HAIKU__ #if !defined(__HAIKU__) && !defined(__minix)
Act.sa_sigaction = 0; Act.sa_sigaction = 0;
#endif #endif
Act.sa_handler = TimeOutHandler; Act.sa_handler = TimeOutHandler;