mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
Add triple for OpenBSD.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74422 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c91e68a0c4
commit
cd1267d2d6
@ -53,7 +53,8 @@ public:
|
||||
Darwin,
|
||||
DragonFly,
|
||||
FreeBSD,
|
||||
Linux
|
||||
Linux,
|
||||
OpenBSD
|
||||
};
|
||||
|
||||
private:
|
||||
|
@ -48,6 +48,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
|
||||
case DragonFly: return "dragonfly";
|
||||
case FreeBSD: return "freebsd";
|
||||
case Linux: return "linux";
|
||||
case OpenBSD: return "openbsd";
|
||||
}
|
||||
|
||||
return "<invalid>";
|
||||
@ -90,6 +91,8 @@ void Triple::Parse() const {
|
||||
OS = FreeBSD;
|
||||
else if (memcmp(&OSName[0], "linux", 5) == 0)
|
||||
OS = Linux;
|
||||
else if (memcmp(&OSName[0], "openbsd", 7) == 0)
|
||||
OS = OpenBSD;
|
||||
else
|
||||
OS = UnknownOS;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user