diff options
| author | Sean Fertile <sfertile@ca.ibm.com> | 2019-01-10 15:08:06 +0000 |
|---|---|---|
| committer | Sean Fertile <sfertile@ca.ibm.com> | 2019-01-10 15:08:06 +0000 |
| commit | 3ca494b2eeeede1502cc000fe7818ca2db1461c6 (patch) | |
| tree | 960f1eccb64d26c8a4ee3b531cdaf55c6fac7d7f /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 461725b58500a63585ce4dc5aa97ce2b6b17a33f (diff) | |
Modify InputSectionBase::getLocation to add section and offset to every loc.
The section and offset can be very helpful in diagnosing certian errors.
For example on a relocation overflow or misalignment diagnostic:
test.c:(function foo): relocation R_PPC64_ADDR16_DS out of range: ...
The function foo can have many R_PPC64_ADDR16_DS relocations. Adding the offset
and section will identify exactly which relocation is causing the failure.
Differential Revision: https://reviews.llvm.org/D56453
llvm-svn: 350828
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
