This is an archive of the discontinued LLVM Phabricator instance.

Support for llvm-bcanalyzer dumping of record array strings.
ClosedPublic

Authored by tejohnson on Oct 8 2015, 7:43 AM.

Details

Summary

Adds support for automatically detecting and printing strings
represented by Array abbrev operands, analogous to the string dumping
performed for Blob abbrev operands.

Enhanced the ThinLTO combined index test to check for the appropriate
module and function strings.

Diff Detail

Repository
rL LLVM

Event Timeline

tejohnson updated this revision to Diff 36854.Oct 8 2015, 7:43 AM
tejohnson retitled this revision from to Support for llvm-bcanalyzer dumping of record array strings..
tejohnson updated this object.
tejohnson added a subscriber: llvm-commits.
tejohnson updated this revision to Diff 36856.Oct 8 2015, 8:10 AM
  • Fix test failures by guarding call to getEncoding.
mehdi_amini added inline comments.Oct 8 2015, 8:27 AM
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
518 ↗(On Diff #36856)

I don't understand this assert? The position of an array is supposed to be always second to last? What has to follow?

521 ↗(On Diff #36856)

I don't know why is this loop going to the end of the record?

mehdi_amini accepted this revision.Oct 8 2015, 8:52 AM
mehdi_amini edited edge metadata.

LGTM!
Thanks for the pointer to the doc ;)

This revision is now accepted and ready to land.Oct 8 2015, 8:52 AM
This revision was automatically updated to reflect the committed changes.