Start reifying error descriptions
authorFilipe Cabecinhas <me@filcab.net>
Fri, 26 Aug 2016 20:49:11 +0000 (20:49 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Fri, 26 Aug 2016 20:49:11 +0000 (20:49 +0000)
commit403423cb59dab420a3be3f54017c32e98fada746
tree4b587e9b641b72c29dfa4ab270d7b81dc9bc2ab4
parentef2ab693151840e73a9622cfc3240e03fcadfdeb
Start reifying error descriptions

Summary:
This commit sets up the infrastructure to use reified error
descriptions, and moves ReportStackOverflow to the new system.

After we convert all the errors, we'll be able to simplify ScopedInErrorReport
and remove the older debugging mechanism which had some errors partly reified
in some way. We'll be able to maintain the external API.

ScopedInErrorReport will be able to track one of the reified errors at a time.
The purpose of this is so we have its destructor actually print the error and
possibly interface with the debugger (will depend on the platform, of course).

Reviewers: kcc, samsonov, timurrrr

Subscribers: kubabrecka, llvm-commits

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

llvm-svn: 279862
compiler-rt/lib/asan/CMakeLists.txt
compiler-rt/lib/asan/asan_errors.cc [new file with mode: 0644]
compiler-rt/lib/asan/asan_errors.h [new file with mode: 0644]
compiler-rt/lib/asan/asan_report.cc