Lines Matching defs:VFS
23 static Distro::DistroType DetectOsRelease(llvm::vfs::FileSystem &VFS) {
25 VFS.getBufferForFile("/etc/os-release");
27 File = VFS.getBufferForFile("/usr/lib/os-release");
51 static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
53 VFS.getBufferForFile("/etc/lsb-release");
103 static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) {
108 Version = DetectOsRelease(VFS);
113 Version = DetectLsbRelease(VFS);
119 VFS.getBufferForFile("/etc/redhat-release");
138 File = VFS.getBufferForFile("/etc/debian_version");
180 File = VFS.getBufferForFile("/etc/SuSE-release");
205 if (VFS.exists("/etc/gentoo-release"))
211 static Distro::DistroType GetDistro(llvm::vfs::FileSystem &VFS,
219 const bool onRealFS = (llvm::vfs::getRealFileSystem() == &VFS);
232 static Distro::DistroType LinuxDistro = DetectDistro(VFS);
237 return DetectDistro(VFS);
240 Distro::Distro(llvm::vfs::FileSystem &VFS, const llvm::Triple &TargetOrHost)
241 : DistroVal(GetDistro(VFS, TargetOrHost)) {}