This is an archive of the discontinued LLVM Phabricator instance.

[PDB][NativeSession] Clean up some things in NativeSession.
ClosedPublic

Authored by akhuang on Jul 20 2020, 4:02 PM.

Details

Summary

-Use the actual sect/offset to keep track of symbols in the cache so they don't get created multiple times with different addresses.
-Remove getSymTag from PDBFunctionSymbol/PDBPublicSymbol because it's already implemented in the base class
-Merge the symbolizer test files for DIA and native, since the tests are the same.
-Implement getCompilandId for NativeLineNumber

Diff Detail

Event Timeline

akhuang created this revision.Jul 20 2020, 4:02 PM
akhuang updated this revision to Diff 279374.Jul 20 2020, 4:18 PM

more cleanup

Harbormaster completed remote builds in B65012: Diff 279374.
hans added a comment.Jul 21 2020, 6:49 AM

I don't know this code, but on the surface it seems reasonable to me. Probably good if someone else takes a look too though.

amccarth accepted this revision.Jul 21 2020, 4:00 PM

LGTM.

The naming improvements really help. And it's nice to see the symbol tag set correctly (rather than generically only to be overridden). Nice work.

This revision is now accepted and ready to land.Jul 21 2020, 4:00 PM
This revision was automatically updated to reflect the committed changes.
llvm/test/tools/llvm-symbolizer/pdb/pdb-columns.test