[SanitizerCoverage] Use llvm::getDISubprogram() to get location of the entry basic...
authorAlexey Samsonov <vonosmas@gmail.com>
Fri, 12 Jun 2015 01:48:47 +0000 (01:48 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Fri, 12 Jun 2015 01:48:47 +0000 (01:48 +0000)
commit0fd41495ef26473fd80da3a7a41c8bdd15d217c1
treecd6ce2529b84e41ab6bfffbf10b517f2f6d9954a
parent7168a91de75a3d01a723aed459b1dfbf4a85702d
[SanitizerCoverage] Use llvm::getDISubprogram() to get location of the entry basic block.

DebugLoc::getFnDebugLoc() should soon be removed. Also,
getDISubprogram() might become more effective soon and wouldn't need to
scan debug locations at all, if function-level metadata would be emitted
by Clang.

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