This is an archive of the discontinued LLVM Phabricator instance.

Start porting Type records over to using classes and accessors instead of raw casting
AcceptedPublic

Authored by zturner on May 9 2016, 12:00 PM.

Details

Reviewers
amccarth
rnk
Summary

Work in progress, just want to see if people agree with the general approach

Diff Detail

Event Timeline

zturner updated this revision to Diff 56606.May 9 2016, 12:00 PM
zturner retitled this revision from to Start porting Type records over to using classes and accessors instead of raw casting.
zturner updated this object.
zturner added reviewers: amccarth, rnk.
zturner added a subscriber: llvm-commits.
amccarth accepted this revision.May 9 2016, 12:43 PM
amccarth edited edge metadata.

LGTM

include/llvm/DebugInfo/CodeView/TypeRecord.h
342

Is there always a string? If so, then you could use <= to account for the fact that there should be at least a null character to terminate an empty string.

This revision is now accepted and ready to land.May 9 2016, 12:43 PM
rnk edited edge metadata.May 9 2016, 1:02 PM

We discussed further offline, but I was thinking more that this would be a merging of the records above rather than the creation of new ones. That way the reading and writing records end up more unified.