This is an archive of the discontinued LLVM Phabricator instance.

Driver: Add ToolChain::GetRuntimeLibPath() and migrate existing code to it.
Needs ReviewPublic

Authored by Shiz on May 26 2015, 6:15 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

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.

Diff Detail

Event Timeline

Shiz updated this revision to Diff 26562.May 26 2015, 6:15 PM
Shiz retitled this revision from to Driver: Add ToolChain::GetRuntimeLibPath() and migrate existing code to it..
Shiz updated this object.
Shiz edited the test plan for this revision. (Show Details)
Shiz added a subscriber: Unknown Object (MLST).
Shiz added a comment.May 26 2015, 6:17 PM

This patch needs my previous submission, http://reviews.llvm.org/D10049, in order to work correctly for compiler-rt.