This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Improve tests for AsmPrinter::emitDwarfUnitLength()
AbandonedPublic

Authored by shchenz on Feb 15 2021, 7:06 AM.

Details

Summary

This is a follow-up for D96409 to add checks for the label that is used as a lower bound for the unit length.

Diff Detail

Event Timeline

ikudrin requested review of this revision.Feb 15 2021, 7:06 AM
ikudrin created this revision.
shchenz accepted this revision.Feb 15 2021, 8:50 AM

LGTM. Thanks for doing this.
It is better to wait for another reviewer's comments for some days.

This revision is now accepted and ready to land.Feb 15 2021, 8:50 AM
dblaikie accepted this revision.Feb 16 2021, 12:12 PM

Sure, sounds OK. Though a lot of this is probably OK/already tested by assembly level tests, I'd expect.

Sure, sounds OK. Though a lot of this is probably OK/already tested by assembly level tests, I'd expect.

Thanks! Right, there are other tests that go through this path, but their purposes are different, so they might be changed. Contrary, these are unit tests, and they are focused on the expected behavior of particular methods.

@ikudrin Hi, we made another change for emitDwarfUnitLength in D96409, I think this patch needs to be further improved for Hi parameter. Let me know if you need me to update this patch. Thanks.

@ikudrin Hi, we made another change for emitDwarfUnitLength in D96409, I think this patch needs to be further improved for Hi parameter. Let me know if you need me to update this patch. Thanks.

I believe it would be more convenient for everyone if you just integrate this change into D96409 and take care of all adjustments there. Or you may commandeer this revision, whatever you prefer.

@ikudrin Hi, we made another change for emitDwarfUnitLength in D96409, I think this patch needs to be further improved for Hi parameter. Let me know if you need me to update this patch. Thanks.

I believe it would be more convenient for everyone if you just integrate this change into D96409 and take care of all adjustments there. Or you may commandeer this revision, whatever you prefer.

I have integrated this patch to D96409. Thanks for your patch @ikudrin

shchenz commandeered this revision.Feb 17 2021, 7:30 PM
shchenz abandoned this revision.
shchenz edited reviewers, added: ikudrin; removed: shchenz.