[PATCH] D147256: [DebugInfo] Fix file path separator when targeting windows.
Hans Wennborg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 12 11:45:36 PDT 2023
hans added a comment.
In D147256#4262002 <https://reviews.llvm.org/D147256#4262002>, @zequanwu wrote:
> In D147256#4261949 <https://reviews.llvm.org/D147256#4261949>, @hans wrote:
>
>>> Well, MSVC cl removes redundant dots so we shouldn't remove llvm::sys::path::remove_dots.
>>
>> Could we do the `remove_dots` on the Clang side, where we can decide based on the LangOpts?
>
> Yes, we can do that. Is there a reason to favor there over here? At here, the object path in llc output can also benefits from `remove_dots`, not just clang.
The benefit is that if we do it in Clang, we can just look at the LangOpts and don't have to add a new target option, command line flag etc.
For llc, since it's an internal tool, I think it would be fine to just use the name as given.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147256/new/
https://reviews.llvm.org/D147256
More information about the cfe-commits
mailing list