aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/X86TargetMachine.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/Target/X86/X86TargetMachine.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/Target/X86/X86TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetMachine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp
index fb9cb4b..a9b6b74 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.cpp
+++ b/llvm/lib/Target/X86/X86TargetMachine.cpp
@@ -45,7 +45,7 @@ static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
return make_unique<X86LinuxNaClTargetObjectFile>();
if (TT.isOSBinFormatELF())
return make_unique<X86ELFTargetObjectFile>();
- if (TT.isKnownWindowsMSVCEnvironment())
+ if (TT.isKnownWindowsMSVCEnvironment() || TT.isWindowsCoreCLREnvironment())
return make_unique<X86WindowsTargetObjectFile>();
if (TT.isOSBinFormatCOFF())
return make_unique<TargetLoweringObjectFileCOFF>();