Fix -Werror compilation.

It was broken in r197601.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197665 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Get rid of __asan_symbolize function

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197670 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Delete unused StackTrace::PrintStack argument

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197671 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Get rid of ASan-specific functions for printing stack traces

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197672 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Replace wrap_indirect_calls runtime flag with an interface method.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197799 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Wrap indirect calls to REAL(x) in interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197806 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Add missing file comment.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197807 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Use the new sanitizer_interception.h header in all interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197808 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Add missing visibility attribute to MSan new/delete interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197809 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] convert a CHECK failure in __sanitizer_annotate_contiguous_container into a proper warning message

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197899 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] clean up at the end of the shmget/shmctl test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197901 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: deflake another test



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197965 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Make the report_objects flag more useful.

Print the list of leaked objects after each leak report. Previously we
printed only a joint list of all leaked objects. As a bonus, suppressed objects
are no longer reported.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197977 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Refactor the LeakReport class.

Those methods were too damn bloated.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197978 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: remove in_rtl counter

This is intended to address the following problem.
Episodically we see CHECK-failures when recursive interceptors call back into user code. Effectively we are not "in_rtl" at this point, but it's very complicated and fragile to properly maintain in_rtl property. Instead get rid of it. It was used mostly for sanity CHECKs, which basically never uncover real problems.
Instead introduce ignore_interceptors flag, which is used in very few narrow places to disable recursive interceptors (e.g. during runtime initialization).



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197979 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix false positive in pthread stack manupulation
pthread uses internal cache, we do not see synchronization in it



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197982 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Replace Symbolizer::IsAvailable and Symbolizer::IsExternalAvailable with Symbolizer::CanReturnFileLineInfo.
Remove now redundant checks in symbolizer initialization in TSan and MSan.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198000 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Move OS-specific code for MemoryMappingLayout into separate source files.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198003 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Teach MemoryMappingLayout to dump all loaded modules.

Use this to implement GetListOfModules() on Mac and on Android
(on Linux we use dl_iterate_phdr).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198004 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] fix Go build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198005 91177308-0d34-0410-b5e6-96231b3b80d8