[PATCH] D96638: [Driver][Windows] Support per-target runtimes dir layout for profile instr generate
Markus Böck via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 24 14:02:49 PST 2021
zero9178 updated this revision to Diff 326200.
zero9178 added a comment.
Avoid going through the library directories, checking for the existence of a runtime library, twice by having getCompilerRTBasename call getCompilerRT and simply extract the filename component. To allow other ToolChains to override the names of runtime libraries, getCompilerRT now calls the virtual function buildCompilerRTBasename. This is used by the BareMetal toolchain.
I chose the name buildCompilerRTBasename as the call chain getCompilerRTBasename -> getCompilerRT -> getCompilerRTBasenameImpl would be a bit confusing. I am not too attached to the name though if better suggestions come along.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96638/new/
https://reviews.llvm.org/D96638
Files:
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/ToolChain.cpp
clang/lib/Driver/ToolChains/BareMetal.cpp
clang/lib/Driver/ToolChains/BareMetal.h
clang/test/Driver/cl-options.c
clang/test/Driver/fsanitize.c
clang/test/Driver/instrprof-ld.c
clang/test/Driver/sanitizer-ld.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96638.326200.patch
Type: text/x-patch
Size: 12907 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210224/56115bb4/attachment-0001.bin>
More information about the cfe-commits
mailing list