From d74bac70c4a252134d8975d20c40c33f16274d44 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 19 Apr 2011 20:19:27 +0000 Subject: ADT/Triple: Add support for more explicit "osx" and "ios" OS names. llvm-svn: 129798 --- llvm/lib/Support/Triple.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/lib/Support/Triple.cpp') diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 53ca48f..2679481 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -99,10 +99,12 @@ const char *Triple::getOSTypeName(OSType Kind) { case Darwin: return "darwin"; case DragonFly: return "dragonfly"; case FreeBSD: return "freebsd"; + case IOS: return "ios"; case Linux: return "linux"; case Lv2: return "lv2"; case MinGW32: return "mingw32"; case NetBSD: return "netbsd"; + case OSX: return "osx"; case OpenBSD: return "openbsd"; case Psp: return "psp"; case Solaris: return "solaris"; @@ -314,6 +316,8 @@ Triple::OSType Triple::ParseOS(StringRef OSName) { return DragonFly; else if (OSName.startswith("freebsd")) return FreeBSD; + else if (OSName.startswith("ios")) + return IOS; else if (OSName.startswith("linux")) return Linux; else if (OSName.startswith("lv2")) @@ -322,6 +326,8 @@ Triple::OSType Triple::ParseOS(StringRef OSName) { return MinGW32; else if (OSName.startswith("netbsd")) return NetBSD; + else if (OSName.startswith("osx")) + return OSX; else if (OSName.startswith("openbsd")) return OpenBSD; else if (OSName.startswith("psp")) -- cgit v1.1