[llvm-dwarfdump] Display DW_AT_high_pc as absolute value
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 27 Nov 2017 16:40:46 +0000 (16:40 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 27 Nov 2017 16:40:46 +0000 (16:40 +0000)
commit6a9c5929d4f733d7cebd11903170a21dd416c06f
tree49c688f38773acc18b849b4582b864e91bd48fbe
parent4ca9968155b6056749dfa792de5703f2a5d7d307
[llvm-dwarfdump] Display DW_AT_high_pc as absolute value

DWARF4 relative DW_AT_high_pc values are now displayed as absolute
addresses. The relative value is only shown when explicitly dumping the
forms, i.e. in show-form or verbose mode.

```
DW_AT_low_pc (0x0000000000000049)
DW_AT_high_pc (0x00000019)
```

becomes

```
DW_AT_low_pc (0x0000000000000049)
DW_AT_high_pc (0x0000000000000062)
```

Differential revision: https://reviews.llvm.org/D40317

rdar://35416943

llvm-svn: 319044
llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
llvm/test/tools/dsymutil/X86/basic-lto-dw4-linking-x86.test
llvm/test/tools/llvm-dwarfdump/X86/form.test
llvm/test/tools/llvm-dwarfdump/X86/gnu_call_site.s
llvm/test/tools/llvm-dwarfdump/X86/lookup.s