[all-commits] [llvm/llvm-project] 75cd8d: Support: Add RedirectingFileSystem::create from si...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Tue Dec 8 17:59:55 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 75cd8d756d6e88b075fae8fe631fdbb17802bdb8
      https://github.com/llvm/llvm-project/commit/75cd8d756d6e88b075fae8fe631fdbb17802bdb8
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2020-12-08 (Tue, 08 Dec 2020)

  Changed paths:
    M llvm/include/llvm/Support/VirtualFileSystem.h
    M llvm/lib/Support/VirtualFileSystem.cpp
    M llvm/unittests/Support/VirtualFileSystemTest.cpp

  Log Message:
  -----------
  Support: Add RedirectingFileSystem::create from simple list of redirections

Add an overload of `RedirectingFileSystem::create` that builds a
redirecting filesystem off of a simple vector of string pairs. This is
intended to be used to support `clang::arcmt::FileRemapper` and
`clang::PreprocessorOptions::RemappedFiles`.

Differential Revision: https://reviews.llvm.org/D91317




More information about the All-commits mailing list