aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorMichael Kuperstein <michael.m.kuperstein@intel.com>2015-10-25 08:07:37 +0000
committerMichael Kuperstein <michael.m.kuperstein@intel.com>2015-10-25 08:07:37 +0000
commitfe897623f3b050693df0cd2a234ca6dcfbd4878b (patch)
tree102c8f644e21db6b2bf0d39e7551bc2b9708d5e4 /llvm/lib/Support/Triple.cpp
parente376c40308823cabe9d2c416ddb348598df39568 (diff)
downloadllvm-fe897623f3b050693df0cd2a234ca6dcfbd4878b.zip
llvm-fe897623f3b050693df0cd2a234ca6dcfbd4878b.tar.gz
llvm-fe897623f3b050693df0cd2a234ca6dcfbd4878b.tar.bz2
[X86] Add support for elfiamcu triple
This adds support for the i?86-*-elfiamcu triple, which indicates the IAMCU psABI is used. Differential Revision: http://reviews.llvm.org/D13977 llvm-svn: 251222
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
-rw-r--r--llvm/lib/Support/Triple.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 8e2cbad..f3b3de7 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -202,6 +202,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) {
case Cygnus: return "cygnus";
case AMDOpenCL: return "amdopencl";
case CoreCLR: return "coreclr";
+ case ELFIAMCU: return "elfiamcu";
}
llvm_unreachable("Invalid EnvironmentType!");
@@ -453,6 +454,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) {
.StartsWith("cygnus", Triple::Cygnus)
.StartsWith("amdopencl", Triple::AMDOpenCL)
.StartsWith("coreclr", Triple::CoreCLR)
+ .StartsWith("elfiamcu", Triple::ELFIAMCU)
.Default(Triple::UnknownEnvironment);
}