Also mention "basename" and "dirname" in Path.h since I tried
to find these functions by looking for these strings. It might
help others find them faster if the comments contain these strings.
No behavior change.
Paths
| Differential D69458
lld/COFF: Simplify getOutputPath() using sys::path functions. ClosedPublic Authored by thakis on Oct 25 2019, 8:12 PM.
Details Summary Also mention "basename" and "dirname" in Path.h since I tried No behavior change.
Diff Detail Event TimelineComment Actions LGTM
This revision is now accepted and ready to land.Oct 27 2019, 7:19 PM Closed by commit rGb911d2db5dd8: lld/COFF: Simplify getOutputPath() using sys::path functions. (authored by thakis). · Explain WhyOct 28 2019, 7:38 AM This revision was automatically updated to reflect the committed changes. thakis marked an inline comment as done.
Revision Contents
Diff 226528 lld/COFF/Driver.cpp
llvm/include/llvm/Support/Path.h
|
It seems that you can simplify this further to sys::path::stem(path) + (config->dll ? ".dll" : ".exe"), but I'm fine with this too.