[llvm] [llvm-debuginfo-analyzer] Remove `LVScope::Children` container (PR #144750)

Carlos Alberto Enciso via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 23 00:37:16 PDT 2025


================
@@ -183,10 +182,9 @@ void checkScopeModule(LVReader *Reader) {
   EXPECT_EQ(Root->getFileFormatName(), "Mach-O 64-bit x86-64");
   EXPECT_EQ(Root->getName(), DwarfClangModule);
 
-  ASSERT_NE(CompileUnit->getChildren(), nullptr);
-  LVElement *FirstChild = *(CompileUnit->getChildren()->begin());
-  EXPECT_EQ(FirstChild->getIsScope(), 1);
-  LVScopeModule *Module = static_cast<LVScopeModule *>(FirstChild);
+  ASSERT_NE(CompileUnit->getScopes(), nullptr);
----------------
CarlosAlbertoEnciso wrote:

If the concatenation order is `Scopes`, `Types` and `Symbols`, then I will expecting the `getChildren` to work.

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


More information about the llvm-commits mailing list