From 3872f184a8b90faa9e183e2a87ecf741e1411c8c Mon Sep 17 00:00:00 2001 From: Douglas Katzman Date: Mon, 22 Jun 2015 20:55:31 +0000 Subject: [PATCH] Add comment about the importance of being adjacent. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240328 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/ToolChains.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 987e063039..e157193748 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -2896,6 +2896,9 @@ Tool *Solaris::buildLinker() const { /// Distribution (very bare-bones at the moment). enum Distro { + // NB: Releases of a particular Linux distro should be kept together + // in this enum, because some tests are done by integer comparison against + // the first and last known member in the family, e.g. IsRedHat(). ArchLinux, DebianLenny, DebianSqueeze, -- 2.50.1