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

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 11 08:35:46 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();
----------------
Michael137 wrote:

Oh I'm surprised to find that `GetDWARF` can in fact return `nullptr`. All of the code in this file assumes that it can't, but not sure what guarantees this...

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


More information about the lldb-commits mailing list