[PATCH] D126806: Add an overload to ASTUnit::LoadFromASTFile that accepts a virtual file system.

Andy Soffer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 2 07:34:56 PDT 2022


asoffer updated this revision to Diff 433747.
asoffer added a comment.

Use default arguments instead of overloads.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126806/new/

https://reviews.llvm.org/D126806

Files:
  clang/lib/Frontend/ASTUnit.cpp


Index: clang/lib/Frontend/ASTUnit.cpp
===================================================================
--- clang/lib/Frontend/ASTUnit.cpp
+++ clang/lib/Frontend/ASTUnit.cpp
@@ -866,18 +866,6 @@
   return AST;
 }
 
-std::unique_ptr<ASTUnit> ASTUnit::LoadFromASTFile(
-    const std::string &Filename, const PCHContainerReader &PCHContainerRdr,
-    WhatToLoad ToLoad, IntrusiveRefCntPtr<DiagnosticsEngine> Diags,
-    const FileSystemOptions &FileSystemOpts, bool UseDebugInfo,
-    bool OnlyLocalDecls, CaptureDiagsKind CaptureDiagnostics,
-    bool AllowASTWithCompilerErrors, bool UserFilesAreVolatile) {
-  return LoadFromASTFile(Filename, PCHContainerRdr, ToLoad, Diags,
-                         llvm::vfs::getRealFileSystem(), FileSystemOpts,
-                         UseDebugInfo, OnlyLocalDecls, CaptureDiagnostics,
-                         AllowASTWithCompilerErrors, UserFilesAreVolatile);
-}
-
 /// Add the given macro to the hash of all top-level entities.
 static void AddDefinedMacroToHash(const Token &MacroNameTok, unsigned &Hash) {
   Hash = llvm::djbHash(MacroNameTok.getIdentifierInfo()->getName(), Hash);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126806.433747.patch
Type: text/x-patch
Size: 1130 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220602/63f930e4/attachment.bin>


More information about the cfe-commits mailing list