[lld] [lld-macho][NFC] Track category merger input data source language for better verification (PR #95473)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 17:31:50 PDT 2024


================
@@ -349,11 +349,15 @@ void objc::checkCategories() {
 namespace {
 
 class ObjcCategoryMerger {
+  // In which language was a particular construct originally defined
+  enum SourceLanguage { SourceObjC, SourceSwift, SourceUnknown };
----------------
alx32 wrote:

This was my original naming intent, but the names are too generic and might be confusing to what they are actually referring too when used later on. 

https://github.com/llvm/llvm-project/pull/95473


More information about the llvm-commits mailing list