Base check on the section name, not the variable name.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 6 Nov 2014 20:01:34 +0000 (20:01 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 6 Nov 2014 20:01:34 +0000 (20:01 +0000)
commitd8eb4f19123966c42eccd6ad063f764beeec15f7
tree11b16223e10d2324ea1a01e860c77dca3dd1ec97
parent0ea3b243b0ee469160a4b675b1aaf9822e80b718
Base check on the section name, not the variable name.

The variable is private, so the name should not be relied on. Also, the
linker uses the sections, so asan should too when trying to avoid causing
the linker problems.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221480 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp
test/Instrumentation/AddressSanitizer/do-not-instrument-cstring.ll [new file with mode: 0644]