[Lldb-commits] [lldb] [lldb][DWARFASTParser][NFC] Factor out CXX/ObjC method specifics out of ParseSubroutine (PR #95078)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 11 23:20:11 PDT 2024


================
@@ -975,6 +975,219 @@ ConvertDWARFCallingConventionToClang(const ParsedDWARFTypeAttributes &attrs) {
   return clang::CC_C;
 }
 
+bool DWARFASTParserClang::ParseObjCMethod(
+    const ObjCLanguage::MethodName &objc_method, const DWARFDIE &die,
+    CompilerType clang_type, const ParsedDWARFTypeAttributes &attrs,
+    bool is_variadic) {
+  SymbolFileDWARF *dwarf = die.GetDWARF();
----------------
labath wrote:

(I think the only way you can realistically can a null pointer here is if you start out with an invalid/empty dwarf die)

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


More information about the lldb-commits mailing list