r240328 - Add comment about the importance of being adjacent. NFC

Douglas Katzman dougk at google.com
Mon Jun 22 13:55:32 PDT 2015


Author: dougk
Date: Mon Jun 22 15:55:31 2015
New Revision: 240328

URL: http://llvm.org/viewvc/llvm-project?rev=240328&view=rev
Log:
Add comment about the importance of being adjacent. NFC

Modified:
    cfe/trunk/lib/Driver/ToolChains.cpp

Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=240328&r1=240327&r2=240328&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Mon Jun 22 15:55:31 2015
@@ -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,





More information about the cfe-commits mailing list