[asan] Add a new AddressDescription structure, which can describe any type of address.
authorFilipe Cabecinhas <me@filcab.net>
Fri, 9 Sep 2016 20:43:20 +0000 (20:43 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Fri, 9 Sep 2016 20:43:20 +0000 (20:43 +0000)
commit4aff9e6d716172b800903c913b0917bec55fb4c5
tree3ae9486fc0b94cca423cc9bab9f6695bf0a6c729
parent5057f17716f0622e3237af141627fb0eeba76fa1
[asan] Add a new AddressDescription structure, which can describe any type of address.

Summary:
This is useful for inclusion in the Error* structures, to describe an
arbitrary address.

Remove the old struct since it's used only once. This removes one level of
indirection, and moves all *AddressDescription to be one of the recently
introduced structures.

This merges differential revisions: D24131 and D24132

Reviewers: kcc, eugenis, vitalybuka

Subscribers: kubabrecka, llvm-commits

Differential Revision: https://reviews.llvm.org/D24131

llvm-svn: 281090
compiler-rt/lib/asan/asan_debugging.cc
compiler-rt/lib/asan/asan_descriptions.cc
compiler-rt/lib/asan/asan_descriptions.h
compiler-rt/lib/asan/asan_report.h