Home
last modified time | relevance | path

Searched refs:VFS (Results 1 – 25 of 48) sorted by relevance

12

/openbsd-src/gnu/llvm/clang/lib/Driver/
H A DDistro.cpp23 static Distro::DistroType DetectOsRelease(llvm::vfs::FileSystem &VFS) { in DetectOsRelease() argument
25 VFS.getBufferForFile("/etc/os-release"); in DetectOsRelease()
27 File = VFS.getBufferForFile("/usr/lib/os-release"); in DetectOsRelease()
51 static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) { in DetectLsbRelease() argument
53 VFS.getBufferForFile("/etc/lsb-release"); in DetectLsbRelease()
100 static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) { in DetectDistro() argument
105 Version = DetectOsRelease(VFS); in DetectDistro()
110 Version = DetectLsbRelease(VFS); in DetectDistro()
116 VFS.getBufferForFile("/etc/redhat-release"); in DetectDistro()
135 File = VFS.getBufferForFile("/etc/debian_version"); in DetectDistro()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/WindowsDriver/
H A DMSVCPaths.cpp62 getHighestNumericTupleInDirectory(llvm::vfs::FileSystem &VFS, in getHighestNumericTupleInDirectory() argument
68 for (llvm::vfs::directory_iterator DirIt = VFS.dir_begin(Directory, EC), in getHighestNumericTupleInDirectory()
71 auto Status = VFS.status(DirIt->path()); in getHighestNumericTupleInDirectory()
87 static bool getWindows10SDKVersionFromPath(llvm::vfs::FileSystem &VFS, in getWindows10SDKVersionFromPath() argument
92 SDKVersion = getHighestNumericTupleInDirectory(VFS, IncludePath); in getWindows10SDKVersionFromPath()
97 llvm::vfs::FileSystem &VFS, std::optional<llvm::StringRef> WinSdkDir, in getWindowsSDKDirViaCommandLine() argument
115 SDKPath, getHighestNumericTupleInDirectory(VFS, SDKPath)); in getWindowsSDKDirViaCommandLine()
124 } else if (getWindows10SDKVersionFromPath(VFS, Path, Version)) { in getWindowsSDKDirViaCommandLine()
389 Triple::ArchType TargetArch, vfs::FileSystem &VFS) { in useUniversalCRT() argument
393 return !VFS.exists(TestPath); in useUniversalCRT()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DPrecompiledPreamble.cpp56 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS) { in createVFSOverlayForPreamblePCH() argument
63 new llvm::vfs::OverlayFileSystem(VFS)); in createVFSOverlayForPreamblePCH()
404 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS, in Build() argument
407 assert(VFS && "VFS is null"); in Build()
470 VFS = in Build()
471 createVFSFromCompilerInvocation(Clang->getInvocation(), Diagnostics, VFS); in Build()
474 Clang->setFileManager(new FileManager(Clang->getFileSystemOpts(), VFS)); in Build()
591 llvm::vfs::FileSystem &VFS) const { in CanReuse()
620 if (!moveOnNoError(VFS.status(R.second), Status)) { in CanReuse()
627 if (!VFS.makeAbsolute(MappedPath)) in CanReuse()
[all …]
H A DASTUnit.cpp160 llvm::vfs::FileSystem *VFS, in getBufferForFileHandlingRemapping() argument
169 auto FileStatus = VFS->status(FilePath); in getBufferForFileHandlingRemapping()
176 auto MPathStatus = VFS->status(MPath); in getBufferForFileHandlingRemapping()
181 BufferOwner = valueOrNull(VFS->getBufferForFile(RF.second, -1, true, isVolatile)); in getBufferForFileHandlingRemapping()
192 auto MPathStatus = VFS->status(MPath); in getBufferForFileHandlingRemapping()
206 BufferOwner = valueOrNull(VFS->getBufferForFile(FilePath, -1, true, isVolatile)); in getBufferForFileHandlingRemapping()
791 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS) { in LoadFromASTFile() argument
807 AST->FileMgr = new FileManager(FileSystemOpts, VFS); in LoadFromASTFile()
1125 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS) { in Parse() argument
1129 if (VFS && FileMgr) in Parse()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/WindowsDriver/
H A DMSVCPaths.h64 llvm::vfs::FileSystem &VFS);
67 bool getWindowsSDKDir(vfs::FileSystem &VFS,
75 bool getUniversalCRTSdkDir(vfs::FileSystem &VFS,
83 vfs::FileSystem &VFS, std::optional<llvm::StringRef> VCToolsDir,
89 bool findVCToolChainViaEnvironment(vfs::FileSystem &VFS, std::string &Path,
96 bool findVCToolChainViaSetupConfig(vfs::FileSystem &VFS, std::string &Path,
/openbsd-src/gnu/llvm/llvm/tools/dsymutil/
H A DBinaryHolder.h41 BinaryHolder(IntrusiveRefCntPtr<vfs::FileSystem> VFS, bool Verbose = false)
42 : VFS(VFS), Verbose(Verbose) {} in VFS() argument
60 Error load(IntrusiveRefCntPtr<vfs::FileSystem> VFS, StringRef Filename,
112 Error load(IntrusiveRefCntPtr<vfs::FileSystem> VFS, StringRef Filename,
141 IntrusiveRefCntPtr<vfs::FileSystem> VFS; variable
H A DBinaryHolder.cpp44 Error BinaryHolder::ArchiveEntry::load(IntrusiveRefCntPtr<vfs::FileSystem> VFS, in load() argument
52 : VFS->getBufferForFile(ArchiveFilename, -1, false); in load()
89 Error BinaryHolder::ObjectEntry::load(IntrusiveRefCntPtr<vfs::FileSystem> VFS, in load() argument
95 : VFS->getBufferForFile(Filename, -1, false); in load()
100 llvm::ErrorOr<vfs::Status> Stat = VFS->status(Filename); in load()
246 auto Err = AE->load(VFS, Filename, Timestamp, Verbose); in getObjectEntry()
263 auto Err = OE->load(VFS, Filename, Timestamp, Verbose); in getObjectEntry()
H A DReproducer.cpp27 Reproducer::Reproducer() : VFS(vfs::getRealFileSystem()) {} in Reproducer()
37 VFS = FileCollector::createCollectorVFS(vfs::getRealFileSystem(), FC); in ReproducerGenerate()
76 VFS = llvm::vfs::getVFSFromYAML(std::move(Buffer.get()), nullptr, Mapping); in ReproducerUse()
H A Ddsymutil.h38 parseDebugMap(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS,
44 bool dumpStab(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS,
H A DReproducer.h35 IntrusiveRefCntPtr<vfs::FileSystem> getVFS() const { return VFS; } in getVFS()
44 IntrusiveRefCntPtr<vfs::FileSystem> VFS;
H A DMachODebugMapParser.cpp27 MachODebugMapParser(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS, in MachODebugMapParser() argument
33 PaperTrailWarnings(PaperTrailWarnings), BinHolder(VFS, Verbose), in MachODebugMapParser()
628 parseDebugMap(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS, in parseDebugMap() argument
635 MachODebugMapParser Parser(VFS, InputFile, Archs, PrependPath, in parseDebugMap()
640 bool dumpStab(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS, in dumpStab() argument
643 MachODebugMapParser Parser(VFS, InputFile, Archs, PrependPath, false); in dumpStab()
H A DLinkUtils.h82 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS =
H A Ddsymutil.cpp608 Options.LinkOpts.VFS = (*Repro)->getVFS(); in main()
622 if (!dumpStab(Options.LinkOpts.VFS, InputFile, Options.Archs, in main()
629 parseDebugMap(Options.LinkOpts.VFS, InputFile, Options.Archs, in main()
658 BinaryHolder BinHolder(Options.LinkOpts.VFS); in main()
800 ErrorOr<vfs::Status> stat = Options.LinkOpts.VFS->status(File.path()); in main()
H A DMachOUtils.h59 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS, const DebugMap &DM,
/openbsd-src/gnu/llvm/clang/include/clang/Frontend/
H A DPrecompiledPreamble.h84 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS,
109 PreambleBounds Bounds, llvm::vfs::FileSystem &VFS) const;
120 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS,
127 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS,
169 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS,
178 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS);
H A DASTUnit.h371 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS);
376 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS, bool AllowRebuild = true,
699 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS =
720 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS);
839 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS = nullptr);
854 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS = nullptr);
/openbsd-src/gnu/llvm/clang/lib/Basic/
H A DProfileList.cpp29 create(const std::vector<std::string> &Paths, llvm::vfs::FileSystem &VFS,
34 llvm::vfs::FileSystem &VFS);
48 llvm::vfs::FileSystem &VFS, in create() argument
51 if (PSCL->createInternal(Paths, VFS, Error)) in create()
58 llvm::vfs::FileSystem &VFS) { in createOrDie() argument
60 if (auto PSCL = create(Paths, VFS, Error)) in createOrDie()
H A DSanitizerSpecialCaseList.cpp19 llvm::vfs::FileSystem &VFS, in create() argument
23 if (SSCL->createInternal(Paths, VFS, Error)) { in create()
32 llvm::vfs::FileSystem &VFS) { in createOrDie() argument
34 if (auto SSCL = create(Paths, VFS, Error)) in createOrDie()
H A DDarwinSDKInfo.cpp132 clang::parseDarwinSDKInfo(llvm::vfs::FileSystem &VFS, StringRef SDKRootPath) { in parseDarwinSDKInfo() argument
136 VFS.getBufferForFile(Filepath); in parseDarwinSDKInfo()
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/
H A DCOFFVCRuntimeSupport.cpp159 IntrusiveRefCntPtr<vfs::FileSystem> VFS = vfs::getRealFileSystem(); in getMSVCToolchainPath() local
160 if (!findVCToolChainViaCommandLine(*VFS, std::nullopt, std::nullopt, in getMSVCToolchainPath()
162 !findVCToolChainViaEnvironment(*VFS, VCToolChainPath, VSLayout) && in getMSVCToolchainPath()
163 !findVCToolChainViaSetupConfig(*VFS, VCToolChainPath, VSLayout) && in getMSVCToolchainPath()
170 if (!getUniversalCRTSdkDir(*VFS, std::nullopt, std::nullopt, std::nullopt, in getMSVCToolchainPath()
/openbsd-src/gnu/llvm/clang/lib/Testing/
H A DTestAST.cpp105 auto VFS = llvm::makeIntrusiveRefCnt<llvm::vfs::InMemoryFileSystem>(); in TestAST() local
106 VFS->addFile(Filename, /*ModificationTime=*/0, in TestAST()
109 VFS->addFile( in TestAST()
112 Clang->createFileManager(VFS); in TestAST()
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DSanitizerSpecialCaseList.h35 create(const std::vector<std::string> &Paths, llvm::vfs::FileSystem &VFS,
40 llvm::vfs::FileSystem &VFS);
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DSpecialCaseList.cpp99 vfs::FileSystem &VFS, std::string &Error) { in createInternal() argument
103 VFS.getBufferForFile(Path); in createInternal()
/openbsd-src/gnu/llvm/clang/include/clang/Driver/
H A DDriver.h79 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS; variable
361 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS = nullptr);
377 llvm::vfs::FileSystem &getVFS() const { return *VFS; } in getVFS()
H A DDistro.h98 explicit Distro(llvm::vfs::FileSystem &VFS, const llvm::Triple &TargetOrHost);

12