Unwind: avoid warning about unused typedef
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 20 Sep 2019 20:46:33 +0000 (20:46 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 20 Sep 2019 20:46:33 +0000 (20:46 +0000)
commit0ae02fd71a3828209df37239910568ecde68912a
tree3c0c37b088728423b3b085a8ebdd65c699aedc00
parent216be996d68ec325f1d4341d3af78f078d430d4b
Unwind: avoid warning about unused typedef

Move the definition of Elf_Addr typedef to the only place it is used, to avoid:

```
llvm-project/libunwind/src/AddressSpace.hpp:501:28: warning: unused typedef 'Elf_Addr' [-Wunused-local-typedef]
```

when compiling for Android with _LIBUNWIND_ARM_EHABI defined and
_LIBUNWIND_SUPPORT_DWARF_UNWIND not defined.

Patch by Joel Klinghed!

llvm-svn: 372427
libunwind/src/AddressSpace.hpp