diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-02-01 01:14:13 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-02-01 01:14:13 +0000 |
commit | 2bffee2ee725047137d2523e31db9ecc7b246cbb (patch) | |
tree | c5f897132f5b06d9670fe9926edfd64494ae1f40 /lib/Support | |
parent | e361d2eda14dcd102411721995ae8ed5afbe0c18 (diff) | |
download | external_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.cpp | 3 |
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; } |