diff options
Diffstat (limited to 'include/clang/Driver/Distro.h')
| -rw-r--r-- | include/clang/Driver/Distro.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/clang/Driver/Distro.h b/include/clang/Driver/Distro.h index 7b34a0925603..5651ebb6d42c 100644 --- a/include/clang/Driver/Distro.h +++ b/include/clang/Driver/Distro.h @@ -10,7 +10,7 @@ #ifndef LLVM_CLANG_DRIVER_DISTRO_H #define LLVM_CLANG_DRIVER_DISTRO_H -#include "clang/Basic/VirtualFileSystem.h" +#include "llvm/Support/VirtualFileSystem.h" namespace clang { namespace driver { @@ -39,6 +39,7 @@ public: RHEL6, RHEL7, Fedora, + Gentoo, OpenSUSE, UbuntuHardy, UbuntuIntrepid, @@ -62,6 +63,7 @@ public: UbuntuArtful, UbuntuBionic, UbuntuCosmic, + UbuntuDisco, UnknownDistro }; @@ -80,7 +82,7 @@ public: Distro(DistroType D) : DistroVal(D) {} /// Detects the distribution using specified VFS. - explicit Distro(clang::vfs::FileSystem& VFS); + explicit Distro(llvm::vfs::FileSystem &VFS); bool operator==(const Distro &Other) const { return DistroVal == Other.DistroVal; @@ -115,13 +117,17 @@ public: } bool IsUbuntu() const { - return DistroVal >= UbuntuHardy && DistroVal <= UbuntuCosmic; + return DistroVal >= UbuntuHardy && DistroVal <= UbuntuDisco; } bool IsAlpineLinux() const { return DistroVal == AlpineLinux; } + bool IsGentoo() const { + return DistroVal == Gentoo; + } + /// @} }; |
