[Driver] Search compiler-rt paths in -print-file-name=
authorPetr Hosek <phosek@chromium.org>
Thu, 10 Aug 2017 04:16:38 +0000 (04:16 +0000)
committerPetr Hosek <phosek@chromium.org>
Thu, 10 Aug 2017 04:16:38 +0000 (04:16 +0000)
commit916a4672c11d40698987e16c2b896a3b68b8a776
tree50a9a3eb68129ee6d0b2604d33d5e62a240bcc80
parent9c161e894af3dd7f54dd29218a476bc270864d24
[Driver] Search compiler-rt paths in -print-file-name=

This makes it possible to print the name of compiler-rt libraries
by using simply clang -print-file-name=libclang_rt.${runtime}-${arch}.so
same as other libraries, without having to know the details of the
resource directory organization.

Differential Revision: https://reviews.llvm.org/D35820

llvm-svn: 310548
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChain.cpp