[Lldb-commits] [lldb] Expose DWARFDIE::GetDeclContext() in lldb_private::Function. (PR #69981)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 23 16:14:45 PDT 2023


================
@@ -142,8 +142,7 @@ TypeSP DWARFASTParserClang::ParseTypeFromClangModule(const SymbolContext &sc,
   // If this type comes from a Clang module, recursively look in the
   // DWARF section of the .pcm file in the module cache. Clang
   // generates DWO skeleton units as breadcrumbs to find them.
-  llvm::SmallVector<CompilerContext, 4> decl_context;
-  die.GetDeclContext(decl_context);
+  std::vector<CompilerContext> decl_context = die.GetDeclContext();
----------------
bulbazord wrote:

Why the change from `llvm::SmallVector<$Type, 4>` to `std::vector`? Does this not generally contain 4 or fewer CompilerContexts anymore?

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


More information about the lldb-commits mailing list