Skip to content

Commit 41f0706

Browse files
author
Zachary Turner
committed
Fix broken test.
llvm-svn: 312359
1 parent abb17cc commit 41f0706

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,11 +503,16 @@ Error DumpOutputStyle::dumpSymbolStats() {
503503
StatCollection SymStats;
504504
StatCollection ChunkStats;
505505

506-
iterateSymbolGroups(File, None, [&](uint32_t Modi, const SymbolGroup &SG) {
506+
Optional<PrintScope> Scope;
507+
if (File.isPdb())
508+
Scope.emplace(P, 2);
509+
510+
iterateSymbolGroups(File, Scope, [&](uint32_t Modi, const SymbolGroup &SG) {
507511
StatCollection SS = getSymbolStats(SG, SymStats);
508512
StatCollection CS = getChunkStats(SG, ChunkStats);
509513

510514
if (SG.getFile().isPdb()) {
515+
AutoIndent Indent(P);
511516
auto Modules = cantFail(File.pdb().getPDBDbiStream()).modules();
512517
uint32_t ModCount = Modules.getModuleCount();
513518
DbiModuleDescriptor Desc = Modules.getModuleDescriptor(Modi);
@@ -519,7 +524,6 @@ Error DumpOutputStyle::dumpSymbolStats() {
519524
Desc.getModuleName());
520525
return;
521526
}
522-
523527
P.formatLine("Stream {0}, {1} bytes", StreamIdx,
524528
getPdb().getStreamByteSize(StreamIdx));
525529

0 commit comments

Comments
 (0)