[PATCH] D28444: Define sys::path::convert_to_slash.

Sean Silva via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 8 17:37:48 PST 2017


silvas added a comment.

In https://reviews.llvm.org/D28444#639425, @ruiu wrote:

> Sean,
>
> I'm reluctant to change this type from `std::string convert_to_slashes(StringRef)` to `void convert_to_slashes(SmallVectorImpl<char> &)` as the former is easier to use than the latter. In some cases, you can avoid string copy with the latter type, but I think that's very important here. I don't want to optimize unless it is needed.


Sorry for the confusion, I didn't mean to change the signature. By "put the declaration/definition closer" I literally just meant to move the lines of code within the file so that they are nearby.


https://reviews.llvm.org/D28444





More information about the llvm-commits mailing list