This is an archive of the discontinued LLVM Phabricator instance.

Expose getBaseDiscriminatorFromDiscriminator, getDuplicationFactorFromDiscriminator and getCopyIdentifierFromDiscriminator API so that downstream tools can use them to get the correct encoding.
ClosedPublic

Authored by danielcdh on Feb 10 2017, 2:43 PM.

Details

Summary

Discriminators are now encoded with rich information. This patch exposes the encoding API to downstream tools.

Event Timeline

danielcdh created this revision.Feb 10 2017, 2:43 PM
davidxl added inline comments.Feb 15 2017, 8:57 AM
include/llvm/IR/DebugInfoMetadata.h
1257

give -> given

1404

Add documentation comment.

1411

same here.

1419

Same here.

danielcdh updated this revision to Diff 88561.Feb 15 2017, 9:31 AM
danielcdh marked 4 inline comments as done.

update

davidxl accepted this revision.Feb 15 2017, 9:43 AM

lgtm

This revision is now accepted and ready to land.Feb 15 2017, 9:43 AM
danielcdh closed this revision.Feb 15 2017, 10:06 AM