[ASan] Create new files asan_report.{h,cc} as a preparation for refactoring of ASan...
authorAlexey Samsonov <samsonov@google.com>
Thu, 9 Aug 2012 07:40:58 +0000 (07:40 +0000)
committerAlexey Samsonov <samsonov@google.com>
Thu, 9 Aug 2012 07:40:58 +0000 (07:40 +0000)
commitaa05110a17273e8b1964402b783dd9ab2c847bb2
treef550ea07dc12e5e954cc0d974868b9362b7e6168
parentbc6d0ccf9251b8aabef6d4a12c41929fc6e2eea7
[ASan] Create new files asan_report.{h,cc} as a preparation for refactoring of ASan error reporting code.
Currently ASan reports many kinds of errors, and the code that actually prints error messages can
be found inside allocator, OS-specific files, interceptors code etc.

An example of maintenance troubles this situation causes:
There is currently an ASan interface function that registers
callback which should take the char buffer with error report printed by ASan.
This function is now broken, as one has to insert callback calls to all the places in
ASan code where the error reports are printed, surprisingly it is not only
"__asan_report_error" function...

llvm-svn: 161568
compiler-rt/lib/asan/asan_posix.cc
compiler-rt/lib/asan/asan_report.cc [new file with mode: 0644]
compiler-rt/lib/asan/asan_report.h [new file with mode: 0644]