Fix windows build after r366791

A side effect of this commit was that it exchanged the order of types
and compile units in the output of SymbolVendor::Dump. A couple of PDB
tests dependened on that to assert the links between the two.

While it wouldn't be too hard to update the tests, the change of
ordering was not something I intended to do with that patch, and is easy
to restore the original order, so I do just that.

llvm-svn: 366798
This commit is contained in:
Pavel Labath 2019-07-23 12:26:09 +00:00
parent 53f9fec8e8
commit 7c35db0865
1 changed files with 3 additions and 1 deletions

View File

@ -354,10 +354,12 @@ void SymbolVendor::Dump(Stream *s) {
}
}
s->EOL();
s->PutCString("Types:\n");
m_type_list.Dump(s, show_context);
s->EOL();
if (m_sym_file_up)
m_sym_file_up->Dump(*s);
s->IndentMore();
m_type_list.Dump(s, show_context);
if (Symtab *symtab = GetSymtab())
symtab->Dump(s, nullptr, eSortOrderNone);