[all-commits] [llvm/llvm-project] a22eda: VFS: Return new file systems as uniquely owned whe...

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


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a22eda548b8e1f9362018dec194af0ca91b35da0
      https://github.com/llvm/llvm-project/commit/a22eda548b8e1f9362018dec194af0ca91b35da0
  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:
  -----------
  VFS: Return new file systems as uniquely owned when possible, almost NFC

Uniformly return uniquely-owned filesystems from VFS creation APIs. The
one exception is `getRealFileSystem`, which has a single instance and
needs to be shared.

This is almost NFC, except that it fixes a memory leak in
`vfs::collectVFSFromYAML()`.

Depends on https://reviews.llvm.org/D92888

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




More information about the All-commits mailing list