[PATCH] Driver: Add ToolChain::GetRuntimeLibPath() and migrate existing code to it.

Shiz hi at shiz.me
Tue May 26 18:15:51 PDT 2015


Given a compiler runtime library (from ToolChain::RuntimeLibraryType) and a component (e.g. "builtins" or "sanitize" for compiler-rt and "" or "_s" for libgcc), it will return the full path to it, according to the toolchain settings.

This moves the previous lib/Driver/Tools.cpp code to where it should belong, in the ToolChain class, being possibly toolchain-dependent and toolchain runtime library-related.

http://reviews.llvm.org/D10050

Files:
  include/clang/Driver/ToolChain.h
  lib/Driver/ToolChain.cpp
  lib/Driver/Tools.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10050.26562.patch
Type: text/x-patch
Size: 6996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150527/9c2f1067/attachment.bin>


More information about the cfe-commits mailing list