diff options
Diffstat (limited to 'lib/Support/Triple.cpp')
-rw-r--r-- | lib/Support/Triple.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index c9da964ce1..eadfa56ff3 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -122,6 +122,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) { case GNU: return "gnu"; case GNUEABI: return "gnueabi"; case EABI: return "eabi"; + case MachO: return "macho"; } return "<invalid>"; @@ -350,6 +351,8 @@ Triple::EnvironmentType Triple::ParseEnvironment(StringRef EnvironmentName) { return GNUEABI; else if (EnvironmentName.startswith("gnu")) return GNU; + else if (EnvironmentName.startswith("macho")) + return MachO; else return UnknownEnvironment; } |