This is an archive of the discontinued LLVM Phabricator instance.

[PDB] Save one type record copy
ClosedPublic

Authored by rnk on Apr 3 2017, 5:20 PM.

Details

Summary

The TypeTableBuilder provides stable storage for type records. We don't
need to copy all of the bytes into a flat vector before adding it to the
TpiStreamBuilder.

This makes addTypeRecord take an ArrayRef<uint8_t> and a hash code to go
with it, which seems like a simplification.

Diff Detail

Repository
rL LLVM

Event Timeline

rnk created this revision.Apr 3 2017, 5:20 PM
ruiu accepted this revision.Apr 3 2017, 5:23 PM

LGTM

This revision is now accepted and ready to land.Apr 3 2017, 5:23 PM
This revision was automatically updated to reflect the committed changes.