hanchenye-llvm-project/llvm/test/Instrumentation
Alexey Samsonov 15c9669615 [ASan] Collect unmangled names of global variables in Clang to print them in error reports.
Currently ASan instrumentation pass creates a string with global name
for each instrumented global (to include global names in the error report). Global
name is already mangled at this point, and we may not be able to demangle it
at runtime (e.g. there is no __cxa_demangle on Android).

Instead, create a string with fully qualified global name in Clang, and pass it
to ASan instrumentation pass in llvm.asan.globals metadata. If there is no metadata
for some global, ASan will use the original algorithm.

This fixes https://code.google.com/p/address-sanitizer/issues/detail?id=264.

llvm-svn: 212872
2014-07-12 00:42:52 +00:00
..
AddressSanitizer [ASan] Collect unmangled names of global variables in Clang to print them in error reports. 2014-07-12 00:42:52 +00:00
BoundsChecking Allow aliases to be unnamed_addr. 2014-06-06 01:20:28 +00:00
DataFlowSanitizer [dfsan] Handle bitcast aliases. 2014-07-10 01:30:39 +00:00
MemorySanitizer [msan] Fix handling of phi in blacklisted functions. 2014-07-07 13:28:31 +00:00
ThreadSanitizer