This is an archive of the discontinued LLVM Phabricator instance.

[find-all-symbols] Slim SymbolInfo.
ClosedPublic

Authored by hokein on May 10 2016, 3:30 AM.

Details

Summary

SymbolInfo has some optional fields, which is a bad-smell
implementation. For now, we

  • remove the optional field since we don't need them (we can probably add them back if we actually need them in the future)
  • make SymbolInfo to be a class.

By this change, the code is more simplified.

Diff Detail

Repository
rL LLVM

Event Timeline

hokein updated this revision to Diff 56685.May 10 2016, 3:30 AM
hokein retitled this revision from to Slim SymbolInfo..
hokein updated this object.
hokein updated this revision to Diff 56686.May 10 2016, 3:33 AM

Update.

hokein retitled this revision from Slim SymbolInfo. to [find-all-symbols] Slim SymbolInfo..May 10 2016, 3:35 AM
hokein added a reviewer: klimek.
hokein set the repository for this revision to rL LLVM.
hokein added subscribers: bkramer, ioeric, cfe-commits.
bkramer added inline comments.May 10 2016, 6:54 AM
include-fixer/find-all-symbols/SymbolInfo.cpp
95 ↗(On Diff #56686)

Does folding Contexts into the tie not work?

hokein updated this revision to Diff 56725.May 10 2016, 8:39 AM
hokein marked an inline comment as done.

Address comments.

klimek accepted this revision.May 11 2016, 1:32 AM
klimek edited edge metadata.

lg

This revision is now accepted and ready to land.May 11 2016, 1:32 AM
This revision was automatically updated to reflect the committed changes.