[llvm] [llvm-objdump] Add inlined function display support (PR #142246)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 01:31:06 PDT 2025


================
@@ -150,44 +231,51 @@ void LiveVariablePrinter::addCompileUnit(DWARFDie D) {
 void LiveVariablePrinter::update(object::SectionedAddress ThisAddr,
                                  object::SectionedAddress NextAddr,
                                  bool IncludeDefinedVars) {
+  // Do not create live ranges when debug-inlined-funcs option is provided with
+  // line format option.
+  if (DbgInlinedFunctions == DVLine)
+    return;
+
   // First, check variables which have already been assigned a column, so
   // that we don't change their order.
-  SmallSet<unsigned, 8> CheckedVarIdxs;
+  SmallSet<unsigned, 8> CheckedElementIdxs;
   for (unsigned ColIdx = 0, End = ActiveCols.size(); ColIdx < End; ++ColIdx) {
-    if (!ActiveCols[ColIdx].isActive())
+    if (!ActiveCols[ColIdx].isActive()) {
----------------
jh7370 wrote:

Please remove the braces you've added, to conform with the style guide.

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


More information about the llvm-commits mailing list