[ubsan] Refactor handlers to have separate entry points for aborting.
authorWill Dietz <wdietz2@illinois.edu>
Sun, 2 Dec 2012 19:47:29 +0000 (19:47 +0000)
committerWill Dietz <wdietz2@illinois.edu>
Sun, 2 Dec 2012 19:47:29 +0000 (19:47 +0000)
commit2c36c71f5b5daae99f173aea32ef34497a7a4a48
tree14abf4376e5740732076e6392388ba898d0e4b62
parentb28179be109d69c663efdae2df15563ab3e9a531
[ubsan] Refactor handlers to have separate entry points for aborting.

If user specifies aborting after a recoverable failed check is
appropriate, frontend should emit call to the _abort variant.

Test this behavior with newly added -fsanitize-recover flag.

llvm-svn: 169113
compiler-rt/lib/ubsan/lit_tests/Integer/no-recover.cpp [new file with mode: 0644]
compiler-rt/lib/ubsan/ubsan_handlers.cc
compiler-rt/lib/ubsan/ubsan_handlers.h
compiler-rt/lib/ubsan/ubsan_handlers_cxx.cc
compiler-rt/lib/ubsan/ubsan_handlers_cxx.h