summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Triple.cpp
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
commitd22a4a1fd69ac8553d90677bdd52023b2cb7661c (patch)
treed223805240491c2d1d12ff6688ae8cb8411149e0 /llvm/lib/Support/Triple.cpp
parentc4a99bc416542001bb369ef6ac6bb434ff4b3471 (diff)
downloadbcm5719-llvm-d22a4a1fd69ac8553d90677bdd52023b2cb7661c.tar.gz
bcm5719-llvm-d22a4a1fd69ac8553d90677bdd52023b2cb7661c.zip
Patches to build EFI with Clang/LLVM. By Carl Norum.
llvm-svn: 124639
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
-rw-r--r--llvm/lib/Support/Triple.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index c9da964ce13..eadfa56ff31 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud