llvm.org GIT mirror llvm / b771c8e
[llvm-pdbutil] Dump struct/class/union sizes in the minimal dump format git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332645 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 1 year, 4 months ago
1 changed file(s) with 6 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
302302 P.formatLine("unique name: `{0}`", Class.UniqueName);
303303 P.formatLine("vtable: {0}, base list: {1}, field list: {2}",
304304 Class.VTableShape, Class.DerivationList, Class.FieldList);
305 P.formatLine("options: {0}",
306 formatClassOptions(P.getIndentLevel(), Class.Options));
305 P.formatLine("options: {0}, sizeof {1}",
306 formatClassOptions(P.getIndentLevel(), Class.Options),
307 Class.Size);
307308 return Error::success();
308309 }
309310
313314 if (Union.hasUniqueName())
314315 P.formatLine("unique name: `{0}`", Union.UniqueName);
315316 P.formatLine("field list: {0}", Union.FieldList);
316 P.formatLine("options: {0}",
317 formatClassOptions(P.getIndentLevel(), Union.Options));
317 P.formatLine("options: {0}, sizeof {1}",
318 formatClassOptions(P.getIndentLevel(), Union.Options),
319 Union.Size);
318320 return Error::success();
319321 }
320322