mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
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
This commit is contained in:
@@ -189,7 +189,7 @@ bool AddDiscriminators::runOnFunction(Function &F) {
|
||||
// location as B's last instruction (Last), add a new
|
||||
// discriminator for First's location and all the instructions
|
||||
// in Succ that share the same location with First.
|
||||
if (FirstDIL.atSameLineAs(LastDIL)) {
|
||||
if (!FirstDIL->canDiscriminate(*LastDIL)) {
|
||||
// Create a new lexical scope and compute a new discriminator
|
||||
// number for it.
|
||||
StringRef Filename = FirstDIL.getFilename();
|
||||
|
Reference in New Issue
Block a user