[Driver] Move detectLibcxxIncludePath to ToolChain
authorPetr Hosek <phosek@google.com>
Tue, 22 Sep 2020 08:01:16 +0000 (01:01 -0700)
committerPetr Hosek <phosek@google.com>
Fri, 2 Oct 2020 21:23:48 +0000 (14:23 -0700)
commita594fd28e373cb7cd348cf01f6a90e055bf6cf6d
tree553a44d59f57ca07a9227c250b6c439593ba90ff
parentf7e91e6cc7f35dd0dcc176463a355d78e1c020b1
[Driver] Move detectLibcxxIncludePath to ToolChain

This helper method is useful even outside of Gnu toolchains, so move
it to ToolChain so it can be reused in other toolchains such as Fuchsia.

Differential Revision: https://reviews.llvm.org/D88452
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/ToolChain.cpp
clang/lib/Driver/ToolChains/Fuchsia.cpp
clang/lib/Driver/ToolChains/Gnu.cpp