[llvm] Reland "[llvm-readobj] Dump callgraph section info for ELF" (PR #176260)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 19 02:01:44 PST 2026


================
@@ -8336,9 +8341,7 @@ template <class ELFT> void LLVMELFDumper<ELFT>::printCallGraphInfo() {
                       this->FileName);
         return;
       }
-
-      RelocSymTab = unwrapOrError(this->FileName,
-                                  this->Obj.getSection(CGRelSection->sh_link));
+      RelocSymTab = SymtabOrErr.get();
----------------
jh7370 wrote:

`RelocSymTab = *SymtabOrErr;` would be more idiomatic.

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


More information about the llvm-commits mailing list