summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
diff options
context:
space:
mode:
authorJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>2016-07-25 08:04:26 +0000
committerJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>2016-07-25 08:04:26 +0000
commitebf866213c12c5686ba79334f947c3700f2b2054 (patch)
tree064e788292f830cf6ae4e9f3cdffdd77658e3dc4 /clang/lib/Driver
parentdc816da45523d144fba25e9b7a5980d4da130a99 (diff)
downloadbcm5719-llvm-ebf866213c12c5686ba79334f947c3700f2b2054.tar.gz
bcm5719-llvm-ebf866213c12c5686ba79334f947c3700f2b2054.zip
Update description for CLANG_DEFAULT_CXX_STDLIB and add comment. NFC
We agreed to call it "platform default" instead of "architecture default". (see D17286) llvm-svn: 276618
Diffstat (limited to 'clang/lib/Driver')
-rw-r--r--clang/lib/Driver/ToolChain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
index b4491d6a556..66b76cda14a 100644
--- a/clang/lib/Driver/ToolChain.cpp
+++ b/clang/lib/Driver/ToolChain.cpp
@@ -577,6 +577,8 @@ ToolChain::CXXStdlibType ToolChain::GetCXXStdlibType(const ArgList &Args) const{
<< A->getAsString(Args);
}
+ // If no argument was provided or its value was invalid, look for the
+ // default unless forced or configured to take the platform default.
if (!HasValidType && (ForcePlatformDefault ||
!ParseCXXStdlibType(CLANG_DEFAULT_CXX_STDLIB, Type)))
Type = GetDefaultCXXStdlibType();
OpenPOWER on IntegriCloud