[ASan] Use llvm::getDISubprogram() to get function entry debug location.
authorAlexey Samsonov <vonosmas@gmail.com>
Fri, 26 Jun 2015 00:00:47 +0000 (00:00 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Fri, 26 Jun 2015 00:00:47 +0000 (00:00 +0000)
commit863c0d000e0590b93b8678ddcac69bb518c8e7c4
treee105bb8029172103f3f7f340792def3df35b1026
parent2da1484e97dad97f24ef1686480853bdf70fe836
[ASan] Use llvm::getDISubprogram() to get function entry debug location.

It can be more robust than copying debug info from first non-alloca
instruction in the entry basic block. We use the same strategy in
coverage instrumentation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240738 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp