aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorPat Gavlin <pagavlin@microsoft.com>2015-08-14 22:41:43 +0000
committerPat Gavlin <pagavlin@microsoft.com>2015-08-14 22:41:43 +0000
commitb399095c3f6b9030a68eec4aff38a1ee3499ea1f (patch)
treeca32c57f2768d45bf8117212c8ac8b5ded99cffe /llvm/lib/Support/Triple.cpp
parentdd175bc6c42dc41f9d9e78e1b1e0e43a040e402d (diff)
downloadllvm-b399095c3f6b9030a68eec4aff38a1ee3499ea1f.zip
llvm-b399095c3f6b9030a68eec4aff38a1ee3499ea1f.tar.gz
llvm-b399095c3f6b9030a68eec4aff38a1ee3499ea1f.tar.bz2
Add a target environment for CoreCLR.
Although targeting CoreCLR is similar to targeting MSVC, there are certain important differences that the backend must be aware of (e.g. differences in stack probes, EH, and library calls). Differential Revision: http://reviews.llvm.org/D11012 llvm-svn: 245115
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 f1b009e..a946e19 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -197,6 +197,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) {
case Itanium: return "itanium";
case Cygnus: return "cygnus";
case AMDOpenCL: return "amdopencl";
+ case CoreCLR: return "coreclr";
}
llvm_unreachable("Invalid EnvironmentType!");
@@ -432,6 +433,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) {
.StartsWith("itanium", Triple::Itanium)
.StartsWith("cygnus", Triple::Cygnus)
.StartsWith("amdopencl", Triple::AMDOpenCL)
+ .StartsWith("coreclr", Triple::CoreCLR)
.Default(Triple::UnknownEnvironment);
}