HomePhabricator

[DebugInfo] add SectionedAddress to DebugInfo interfaces.

Authored by avl on Feb 27 2019, 5:17 AM.

Description

[DebugInfo] add SectionedAddress to DebugInfo interfaces.

   That patch is the fix for https://bugs.llvm.org/show_bug.cgi?id=40703
"wrong line number info for obj file compiled with -ffunction-sections"
bug. The problem happened with only .o files. If object file contains
several .text sections then line number information showed incorrectly.
The reason for this is that DwarfLineTable could not detect section which
corresponds to specified address(because address is the local to the
section). And as the result it could not select proper sequence in the
line table. The fix is to pass SectionIndex with the address. So that it
would be possible to differentiate addresses from various sections. With
this fix llvm-objdump shows correct line numbers for disassembled code.

Differential review: https://reviews.llvm.org/D58194

llvm-svn: 354972

Details

Committed
avlFeb 27 2019, 5:17 AM
Parents
rGef9203582776: [AMDGPU][MC][GFX8+] Added syntactic sugar for 'vgpr index' operand of…
Branches
Unknown
Tags
Unknown