From 7683f196ea8fdc42b0ff9705f9770e3424f9e593 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Fri, 28 Mar 2014 20:49:28 +0000 Subject: [PATCH] Simplify clang-cl's target triple setting git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205051 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Driver.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index bd3a6e928e..317b822095 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -337,9 +337,8 @@ Compilation *Driver::BuildCompilation(ArrayRef ArgList) { if (IsCLMode()) { // clang-cl targets MSVC-style Win32. llvm::Triple T(DefaultTargetTriple); - T.setOSName(llvm::Triple::getOSTypeName(llvm::Triple::Win32)); - T.setEnvironmentName(llvm::Triple::getEnvironmentTypeName( - llvm::Triple::MSVC)); + T.setOS(llvm::Triple::Win32); + T.setEnvironment(llvm::Triple::MSVC); DefaultTargetTriple = T.str(); } if (const Arg *A = Args->getLastArg(options::OPT_target)) -- 2.40.0