mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
add haiku support, patch by Paul Davey!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84238 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a4d8667c87
commit
a43fc3452b
@ -95,7 +95,8 @@ public:
|
||||
NetBSD,
|
||||
OpenBSD,
|
||||
Solaris,
|
||||
Win32
|
||||
Win32,
|
||||
Haiku
|
||||
};
|
||||
|
||||
private:
|
||||
|
@ -96,6 +96,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
|
||||
case OpenBSD: return "openbsd";
|
||||
case Solaris: return "solaris";
|
||||
case Win32: return "win32";
|
||||
case Haiku: return "haiku";
|
||||
}
|
||||
|
||||
return "<invalid>";
|
||||
@ -276,6 +277,8 @@ void Triple::Parse() const {
|
||||
OS = Solaris;
|
||||
else if (OSName.startswith("win32"))
|
||||
OS = Win32;
|
||||
else if (OSName.startswith("haiku"))
|
||||
OS = Haiku;
|
||||
else
|
||||
OS = UnknownOS;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user