Skip to content

Commit 3a5a95c

Browse files
committed
Document sandbox on getRealFileSystem() and createPhysicalFileSystem()
1 parent b71e695 commit 3a5a95c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/include/llvm/Support/VirtualFileSystem.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,12 +372,14 @@ class LLVM_ABI FileSystem : public llvm::ThreadSafeRefCountedBase<FileSystem>,
372372
/// the operating system.
373373
/// The working directory is linked to the process's working directory.
374374
/// (This is usually thread-hostile).
375+
/// This may only be called outside the IO sandbox.
375376
LLVM_ABI IntrusiveRefCntPtr<FileSystem> getRealFileSystem();
376377

377378
/// Create an \p vfs::FileSystem for the 'real' file system, as seen by
378379
/// the operating system.
379380
/// It has its own working directory, independent of (but initially equal to)
380381
/// that of the process.
382+
/// This may only be called outside the IO sandbox.
381383
LLVM_ABI std::unique_ptr<FileSystem> createPhysicalFileSystem();
382384

383385
/// A file system that allows overlaying one \p AbstractFileSystem on top

0 commit comments

Comments
 (0)