[asan] Ease dealing with tagged enum ErrorDescription with some macros.
authorFilipe Cabecinhas <me@filcab.net>
Mon, 12 Sep 2016 17:12:02 +0000 (17:12 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Mon, 12 Sep 2016 17:12:02 +0000 (17:12 +0000)
commit74f490d3315916bd704da550ebe4f79917d6737b
tree3edf65655bdba869ec4f303066d99a9def3b9f64
parent64150ea00df72f83b3871f7a95e30e5c90733791
[asan] Ease dealing with tagged enum ErrorDescription with some macros.

Summary:
Added a macro to enumerate the (error name, error member name) pairs. This way,
when adding an error, we only need to add the pair to one place (plus add its
implementation, or course).

Reviewers: kcc, samsonov

Subscribers: llvm-commits, kubabrecka

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

llvm-svn: 281237
compiler-rt/lib/asan/asan_errors.h