[PATCH] D158475: [driver] Refactor getRuntimePaths. NFC
Shoaib Meenai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 21 18:55:41 PDT 2023
smeenai created this revision.
smeenai added reviewers: collinbaker, thakis, phosek, MaskRay.
Herald added a project: All.
smeenai requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This used to be getRuntimePath till https://reviews.llvm.org/D115049
added a fallback search path for Android. As far as I can tell, the
intent has always been to use the first existing path though instead of
actually supporting multiple runtime paths. We can move the existence
checks into getRuntimePath and have it return std::optional, which also
makes the `--print-runtime-dir` behavior much cleaner.
The motivation is a follow-up change to Android runtime path searches,
which is much nicer with this in place.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158475
Files:
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChain.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158475.552185.patch
Type: text/x-patch
Size: 3767 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230822/b11a29c9/attachment.bin>
More information about the cfe-commits
mailing list