[PATCH] D25669: [Driver] Simplify ToolChain::GetCXXStdlibType (NFC)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 17 04:58:16 PDT 2016
ABataev added inline comments.
================
Comment at: lib/Driver/ToolChain.cpp:553-559
+ // "platform" is only used in tests to override CLANG_DEFAULT_CXX_STDLIB
+ if (LibName == "libc++")
+ return ToolChain::CST_Libcxx;
+ else if (LibName == "libstdc++")
+ return ToolChain::CST_Libstdcxx;
+ else if (LibName == "platform")
+ return GetDefaultCXXStdlibType();
----------------
I believe you can use StringSwitch here
https://reviews.llvm.org/D25669
More information about the cfe-commits
mailing list