This is an archive of the discontinued LLVM Phabricator instance.

Schedule discriminators pass.
ClosedPublic

Authored by dnovillo on Feb 4 2014, 12:24 PM.

Details

Reviewers
echristo
Summary

This patch schedules the pass to add discriminators.
It depends on http://llvm-reviews.chandlerc.com/D2691.

Diff Detail

Event Timeline

dnovillo updated this revision to Unknown Object (????).Feb 11 2014, 9:06 AM

Update call to DIBuilder::createLexicalBlock.

There is a new argument for discriminators.

echristo added inline comments.Feb 11 2014, 7:32 PM
lib/CodeGen/CGDebugInfo.cpp
2581 ↗(On Diff #6994)

This change doesn't seem relevant to this patch?

dnovillo updated this revision to Unknown Object (????).Feb 18 2014, 2:05 PM

This adds two additional changes required by the discriminator
pass:

1- Add discriminator argument when calling DIBuilder::createLexicalBlock.

2- Modify line table test to account for new lexical block created to

support the new discriminator value.

Last change doesn't seem to be required to schedule the pass.

Comments inline.

lib/CodeGen/CGDebugInfo.cpp
2581 ↗(On Diff #7183)

This can go in before, it just means that nothing will deal with it yes? In addition, it would be good to test that nothing changes if you pass 0 here and don't actually run the pass.

test/CodeGenCXX/linetable-eh.cpp
9

This is with the pass running?

echristo requested changes to this revision.Feb 25 2014, 5:29 PM
dnovillo updated this revision to Unknown Object (????).Feb 26 2014, 3:10 PM

Factored some bits from this patch into http://llvm-reviews.chandlerc.com/D2891.

echristo accepted this revision.Mar 12 2014, 2:44 PM
dnovillo closed this revision.Mar 14 2014, 2:39 PM