From 2bffee2ee725047137d2523e31db9ecc7b246cbb Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 1 Feb 2011 01:14:13 +0000 Subject: Patches to build EFI with Clang/LLVM. By Carl Norum. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124639 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Triple.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/Support/Triple.cpp') 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 ""; @@ -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; } -- cgit v1.2.3-70-g09d2