[llvm] r224527 - Add missing implementation of 'sys::path::is_other' to the support library.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Dec 26 07:05:55 PST 2014


What is using it?

On 18 December 2014 at 13:19, Juergen Ributzka <juergen at apple.com> wrote:
> Author: ributzka
> Date: Thu Dec 18 12:19:47 2014
> New Revision: 224527
>
> URL: http://llvm.org/viewvc/llvm-project?rev=224527&view=rev
> Log:
> Add missing implementation of 'sys::path::is_other' to the support library.
>
> The header claims that this function exists, but the linker wasn't too happy
> about it not being in the library.
>
> Modified:
>     llvm/trunk/lib/Support/Path.cpp
>
> Modified: llvm/trunk/lib/Support/Path.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Path.cpp?rev=224527&r1=224526&r2=224527&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Support/Path.cpp (original)
> +++ llvm/trunk/lib/Support/Path.cpp Thu Dec 18 12:19:47 2014
> @@ -888,6 +888,14 @@ bool is_other(file_status status) {
>           !is_directory(status);
>  }
>
> +std::error_code is_other(const Twine &Path, bool &Result) {
> +  file_status FileStatus;
> +  if (std::error_code EC = status(Path, FileStatus))
> +    return EC;
> +  Result = is_other(FileStatus);
> +  return std::error_code();
> +}
> +
>  void directory_entry::replace_filename(const Twine &filename, file_status st) {
>    SmallString<128> path(Path.begin(), Path.end());
>    path::remove_filename(path);
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list