aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-02-01 01:14:13 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-02-01 01:14:13 +0000
commit2bffee2ee725047137d2523e31db9ecc7b246cbb (patch)
treec5f897132f5b06d9670fe9926edfd64494ae1f40 /lib/Support
parente361d2eda14dcd102411721995ae8ed5afbe0c18 (diff)
downloadexternal_llvm-2bffee2ee725047137d2523e31db9ecc7b246cbb.zip
external_llvm-2bffee2ee725047137d2523e31db9ecc7b246cbb.tar.gz
external_llvm-2bffee2ee725047137d2523e31db9ecc7b246cbb.tar.bz2
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
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/Triple.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index c9da964..eadfa56 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;
}