[lld/mac] Remove unusual "Fallthrough" comments
authorNico Weber <thakis@chromium.org>
Mon, 8 Aug 2022 18:18:39 +0000 (14:18 -0400)
committerNico Weber <thakis@chromium.org>
Mon, 8 Aug 2022 18:18:44 +0000 (14:18 -0400)
Normally we'd use LLVM_FALLTHROUGH, or now, [[fallthrough]].
But for case labels followed directly by other case labels, we
use neither.

No behavior change.

lld/MachO/InputFiles.cpp

index 8a41469..1f1cf5a 100644 (file)
@@ -1961,10 +1961,10 @@ DylibFile::DylibFile(const InterfaceFile &interface, DylibFile *umbrella,
       continue;
 
     switch (symbol->getKind()) {
-    case SymbolKind::GlobalSymbol:               // Fallthrough
-    case SymbolKind::ObjectiveCClass:            // Fallthrough
-    case SymbolKind::ObjectiveCClassEHType:      // Fallthrough
-    case SymbolKind::ObjectiveCInstanceVariable: // Fallthrough
+    case SymbolKind::GlobalSymbol:
+    case SymbolKind::ObjectiveCClass:
+    case SymbolKind::ObjectiveCClassEHType:
+    case SymbolKind::ObjectiveCInstanceVariable:
       normalSymbols.push_back(symbol);
     }
   }