diff options
| author | Petr Hosek <phosek@chromium.org> | 2016-10-06 05:17:26 +0000 |
|---|---|---|
| committer | Petr Hosek <phosek@chromium.org> | 2016-10-06 05:17:26 +0000 |
| commit | e023d62e7691cd028b1ae127682c533888b16281 (patch) | |
| tree | e44d1efe92d372f6dbc91d7f6e7a573b9e360ee4 /llvm/lib/Support | |
| parent | 936b1e774f1f357bfd5fc9e2d63a2b6a44e1c846 (diff) | |
| download | bcm5719-llvm-e023d62e7691cd028b1ae127682c533888b16281.tar.gz bcm5719-llvm-e023d62e7691cd028b1ae127682c533888b16281.zip | |
[Triple] Add triple for Fuchsia
Fuchsia is a new operating system.
Differential Revision: https://reviews.llvm.org/D25116
llvm-svn: 283419
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/Triple.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index bc12203d817..1470563a6e9 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -168,6 +168,7 @@ StringRef Triple::getOSTypeName(OSType Kind) { case Darwin: return "darwin"; case DragonFly: return "dragonfly"; case FreeBSD: return "freebsd"; + case Fuchsia: return "fuchsia"; case IOS: return "ios"; case KFreeBSD: return "kfreebsd"; case Linux: return "linux"; @@ -438,6 +439,7 @@ static Triple::OSType parseOS(StringRef OSName) { .StartsWith("darwin", Triple::Darwin) .StartsWith("dragonfly", Triple::DragonFly) .StartsWith("freebsd", Triple::FreeBSD) + .StartsWith("fuchsia", Triple::Fuchsia) .StartsWith("ios", Triple::IOS) .StartsWith("kfreebsd", Triple::KFreeBSD) .StartsWith("linux", Triple::Linux) |

