Simplify clang-cl's target triple setting

llvm-svn: 205051
This commit is contained in:
Hans Wennborg 2014-03-28 20:49:28 +00:00
parent 9b620b451a
commit 9d9ce7a5af
1 changed files with 2 additions and 3 deletions

View File

@ -337,9 +337,8 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> 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))