[ubsan] Use the correct tool name in diagnostics
authorVedant Kumar <vsk@apple.com>
Fri, 14 Apr 2017 18:24:35 +0000 (18:24 +0000)
committerVedant Kumar <vsk@apple.com>
Fri, 14 Apr 2017 18:24:35 +0000 (18:24 +0000)
commit2b1eae0aa55c15353bcfb9b2736c5695636179b5
tree859fcfcccbcfc344fdfbd7e0cf77438269e7ded1
parent9d39a9d8604c599312931638bcac59e116aebe8a
[ubsan] Use the correct tool name in diagnostics

When using ASan and UBSan together, the common sanitizer tool name is
set to "AddressSanitizer". That means that when a UBSan diagnostic is
printed out, it looks like this:

  SUMMARY: AddressSanitizer: ...

This can confuse users. Fix it so that we always use the correct tool
name when printing out UBSan diagnostics.

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

llvm-svn: 300358
compiler-rt/lib/sanitizer_common/sanitizer_common.cc
compiler-rt/lib/sanitizer_common/sanitizer_common.h
compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc
compiler-rt/lib/ubsan/ubsan_diag.cc
compiler-rt/lib/ubsan/ubsan_init.cc
compiler-rt/lib/ubsan/ubsan_init.h
compiler-rt/test/ubsan/TestCases/Integer/summary.cpp