[Lldb-commits] [lldb] a43e23a - [lldb][NFCI] Silence warning about unhandled value eManglingSchemeSwift in switch statement

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 22 10:36:06 PDT 2023


Author: Alex Langford
Date: 2023-08-22T10:35:36-07:00
New Revision: a43e23a2141f4fa78940844d810648ff8d40f474

URL: https://github.com/llvm/llvm-project/commit/a43e23a2141f4fa78940844d810648ff8d40f474
DIFF: https://github.com/llvm/llvm-project/commit/a43e23a2141f4fa78940844d810648ff8d40f474.diff

LOG: [lldb][NFCI] Silence warning about unhandled value eManglingSchemeSwift in switch statement

For now, we don't handle swift names in Symtab.

Added: 
    

Modified: 
    lldb/source/Symbol/Symtab.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Symbol/Symtab.cpp b/lldb/source/Symbol/Symtab.cpp
index cf8732530c1ae2..6d94fe5031627b 100644
--- a/lldb/source/Symbol/Symtab.cpp
+++ b/lldb/source/Symbol/Symtab.cpp
@@ -256,6 +256,7 @@ static bool lldb_skip_name(llvm::StringRef mangled,
   case Mangled::eManglingSchemeMSVC:
   case Mangled::eManglingSchemeRustV0:
   case Mangled::eManglingSchemeD:
+  case Mangled::eManglingSchemeSwift:
     return false;
 
   // Don't try and demangle things we can't categorize.


        


More information about the lldb-commits mailing list