This is an archive of the discontinued LLVM Phabricator instance.

[LLD][ELF] Add test cases to improve code coverage of Thunks [NFC]
ClosedPublic

Authored by peter.smith on Apr 30 2018, 4:20 AM.

Details

Summary

Add two test cases to improve the code coverage of ThunkSection creation when there are no existing ThunkSections in range. There are two test cases, one where a new section can be created and another to trigger the "InputSection too large for range extension thunk" error message. A recent code coverage report showed that this section of code wasn't covered by a test case.

Diff Detail

Repository
rL LLVM

Event Timeline

peter.smith created this revision.Apr 30 2018, 4:20 AM
ruiu accepted this revision.May 5 2018, 9:20 AM

LGTM

This revision is now accepted and ready to land.May 5 2018, 9:20 AM
This revision was automatically updated to reflect the committed changes.