[llvm] r332645 - [llvm-pdbutil] Dump struct/class/union sizes in the minimal dump format
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Thu May 17 11:33:42 PDT 2018
Author: rnk
Date: Thu May 17 11:33:42 2018
New Revision: 332645
URL: http://llvm.org/viewvc/llvm-project?rev=332645&view=rev
Log:
[llvm-pdbutil] Dump struct/class/union sizes in the minimal dump format
Modified:
llvm/trunk/tools/llvm-pdbutil/MinimalTypeDumper.cpp
Modified: llvm/trunk/tools/llvm-pdbutil/MinimalTypeDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbutil/MinimalTypeDumper.cpp?rev=332645&r1=332644&r2=332645&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbutil/MinimalTypeDumper.cpp (original)
+++ llvm/trunk/tools/llvm-pdbutil/MinimalTypeDumper.cpp Thu May 17 11:33:42 2018
@@ -303,8 +303,9 @@ Error MinimalTypeDumpVisitor::visitKnown
P.formatLine("unique name: `{0}`", Class.UniqueName);
P.formatLine("vtable: {0}, base list: {1}, field list: {2}",
Class.VTableShape, Class.DerivationList, Class.FieldList);
- P.formatLine("options: {0}",
- formatClassOptions(P.getIndentLevel(), Class.Options));
+ P.formatLine("options: {0}, sizeof {1}",
+ formatClassOptions(P.getIndentLevel(), Class.Options),
+ Class.Size);
return Error::success();
}
@@ -314,8 +315,9 @@ Error MinimalTypeDumpVisitor::visitKnown
if (Union.hasUniqueName())
P.formatLine("unique name: `{0}`", Union.UniqueName);
P.formatLine("field list: {0}", Union.FieldList);
- P.formatLine("options: {0}",
- formatClassOptions(P.getIndentLevel(), Union.Options));
+ P.formatLine("options: {0}, sizeof {1}",
+ formatClassOptions(P.getIndentLevel(), Union.Options),
+ Union.Size);
return Error::success();
}
More information about the llvm-commits
mailing list