r248005 - clang-cl: Use 'pc' for the vendor field in the default triple
Hans Wennborg via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 18 10:11:50 PDT 2015
Author: hans
Date: Fri Sep 18 12:11:50 2015
New Revision: 248005
URL: http://llvm.org/viewvc/llvm-project?rev=248005&view=rev
Log:
clang-cl: Use 'pc' for the vendor field in the default triple
Leaving it unset can make the triple look confusing, especially
when using -m32 or -m64.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=248005&r1=248004&r2=248005&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Fri Sep 18 12:11:50 2015
@@ -413,6 +413,7 @@ Compilation *Driver::BuildCompilation(Ar
// clang-cl targets MSVC-style Win32.
llvm::Triple T(DefaultTargetTriple);
T.setOS(llvm::Triple::Win32);
+ T.setVendor(llvm::Triple::PC);
T.setEnvironment(llvm::Triple::MSVC);
DefaultTargetTriple = T.str();
}
More information about the cfe-commits
mailing list