From: Hans Wennborg Date: Fri, 28 Mar 2014 20:49:28 +0000 (+0000) Subject: Simplify clang-cl's target triple setting X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7683f196ea8fdc42b0ff9705f9770e3424f9e593;p=clang Simplify clang-cl's target triple setting git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205051 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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))