diff options
Diffstat (limited to 'llvm/lib/IR/Instruction.cpp')
| -rw-r--r-- | llvm/lib/IR/Instruction.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/lib/IR/Instruction.cpp b/llvm/lib/IR/Instruction.cpp index cbf39b8adf1b..763cc1832b79 100644 --- a/llvm/lib/IR/Instruction.cpp +++ b/llvm/lib/IR/Instruction.cpp @@ -1235,26 +1235,7 @@ bool Instruction::isDebugOrPseudoInst() const { return isa<DbgInfoIntrinsic>(this) || isa<PseudoProbeInst>(this); } -const Instruction * -Instruction::getNextNonDebugInstruction(bool SkipPseudoOp) const { - for (const Instruction *I = getNextNode(); I; I = I->getNextNode()) - if (!isa<DbgInfoIntrinsic>(I) && !(SkipPseudoOp && isa<PseudoProbeInst>(I))) - return I; - return nullptr; -} - -const Instruction * -Instruction::getPrevNonDebugInstruction(bool SkipPseudoOp) const { - for (const Instruction *I = getPrevNode(); I; I = I->getPrevNode()) - if (!isa<DbgInfoIntrinsic>(I) && !(SkipPseudoOp && isa<PseudoProbeInst>(I))) - return I; - return nullptr; -} - const DebugLoc &Instruction::getStableDebugLoc() const { - if (isa<DbgInfoIntrinsic>(this)) - if (const Instruction *Next = getNextNonDebugInstruction()) - return Next->getDebugLoc(); return getDebugLoc(); } |
