This is an archive of the discontinued LLVM Phabricator instance.

Allow a ToolChain to compute the path of a compiler-rt's component.
ClosedPublic

Authored by vkalintiris on Oct 1 2015, 5:12 AM.

Details

Summary

This patch moves getCompilerRT() from the clang::driver::tools namespace to
the ToolChain class. This is needed for multilib toolchains that need to
place their libraries in Clang's resource directory with a layout that is
different from the default one.

Diff Detail

Repository
rL LLVM

Event Timeline

vkalintiris updated this revision to Diff 36225.Oct 1 2015, 5:12 AM
vkalintiris retitled this revision from to Allow a ToolChain to compute the path of a compiler-rt's component..
vkalintiris updated this object.
vkalintiris added reviewers: atanasyan, rsmith.
vkalintiris added a subscriber: cfe-commits.
atanasyan accepted this revision.Oct 1 2015, 6:29 AM
atanasyan edited edge metadata.

LGTM with a nit.

include/clang/Driver/ToolChain.h
253 ↗(On Diff #36225)

Return std::string for consistency with other methods.

This revision is now accepted and ready to land.Oct 1 2015, 6:29 AM
This revision was automatically updated to reflect the committed changes.