r220624 - Driver: assume that all architectures are supported for libstc++
Saleem Abdulrasool
compnerd at compnerd.org
Sat Oct 25 13:48:36 PDT 2014
Author: compnerd
Date: Sat Oct 25 15:48:35 2014
New Revision: 220624
URL: http://llvm.org/viewvc/llvm-project?rev=220624&view=rev
Log:
Driver: assume that all architectures are supported for libstc++
Rather than asserting that the target is unsupported, make a guess at what the
tree for a port would look like and use that for the search path.
Addresses review comments from Ried Kleckner for SVN r220547.
Modified:
cfe/trunk/lib/Driver/CrossWindowsToolChain.cpp
Modified: cfe/trunk/lib/Driver/CrossWindowsToolChain.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/CrossWindowsToolChain.cpp?rev=220624&r1=220623&r2=220624&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/CrossWindowsToolChain.cpp (original)
+++ cfe/trunk/lib/Driver/CrossWindowsToolChain.cpp Sat Oct 25 15:48:35 2014
@@ -82,14 +82,8 @@ AddClangCXXStdlibIncludeArgs(const llvm:
case ToolChain::CST_Libstdcxx:
addSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/incldue/c++");
- switch (Triple.getArch()) {
- default: llvm_unreachable("unsupported architecture");
- case llvm::Triple::x86:
- case llvm::Triple::x86_64:
- addSystemInclude(DriverArgs, CC1Args,
- SysRoot + "/usr/include/c++/" + Triple.str());
- break;
- }
+ addSystemInclude(DriverArgs, CC1Args,
+ SysRoot + "/usr/include/c++/" + Triple.str());
addSystemInclude(DriverArgs, CC1Args,
SysRoot + "/usr/include/c++/backwards");
}
More information about the cfe-commits
mailing list