DebugInfo: Rewrite atSameLineAs() as MDLocation::canDiscriminate()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 11 Apr 2015 01:00:47 +0000 (01:00 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 11 Apr 2015 01:00:47 +0000 (01:00 +0000)
commit2c64a1129f14d6322631e1c6d610b92c4c4871d0
treefd591d6de68975bb86067a0474fef873b80204ae
parent43aeb128e1edbe88525cfb5faccf237e6e02358b
DebugInfo: Rewrite atSameLineAs() as MDLocation::canDiscriminate()

Rewrite `DILocation::atSameLineAs()` as `MDLocation::canDiscriminate()`
with a doxygen comment explaining its purpose.  I've added a few FIXMEs
where I think this check is too weak; fixing that is tracked by PR23199.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234674 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfo.h
include/llvm/IR/DebugInfoMetadata.h
lib/Transforms/Utils/AddDiscriminators.cpp