Skip to content

Commit 74b339c

Browse files
author
git apple-llvm automerger
committed
Merge commit 'cadddaf255c9' from llvm.org/main into next
2 parents e9f4b75 + cadddaf commit 74b339c

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

clang/include/clang/Driver/Distro.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ class Distro {
4848
Fedora,
4949
Gentoo,
5050
OpenSUSE,
51-
UbuntuHardy,
52-
UbuntuIntrepid,
53-
UbuntuJaunty,
54-
UbuntuKarmic,
55-
UbuntuLucid,
5651
UbuntuMaverick,
5752
UbuntuNatty,
5853
UbuntuOneiric,
@@ -135,7 +130,7 @@ class Distro {
135130
}
136131

137132
bool IsUbuntu() const {
138-
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuQuesting;
133+
return DistroVal >= UbuntuMaverick && DistroVal <= UbuntuQuesting;
139134
}
140135

141136
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }

clang/lib/Driver/Distro.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
6161
if (Version == Distro::UnknownDistro &&
6262
Line.starts_with("DISTRIB_CODENAME="))
6363
Version = llvm::StringSwitch<Distro::DistroType>(Line.substr(17))
64-
.Case("hardy", Distro::UbuntuHardy)
65-
.Case("intrepid", Distro::UbuntuIntrepid)
66-
.Case("jaunty", Distro::UbuntuJaunty)
67-
.Case("karmic", Distro::UbuntuKarmic)
68-
.Case("lucid", Distro::UbuntuLucid)
6964
.Case("maverick", Distro::UbuntuMaverick)
7065
.Case("natty", Distro::UbuntuNatty)
7166
.Case("oneiric", Distro::UbuntuOneiric)

0 commit comments

Comments
 (0)