aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/BasicBlock.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-06-26 21:16:59 +0000
committerVedant Kumar <vsk@apple.com>2018-06-26 21:16:59 +0000
commit1cb63dc2d59233ac71b4399b6f90d3208c50a791 (patch)
treebe01177cb486756fa17c8cc853bbf83ae5b61dd4 /llvm/lib/IR/BasicBlock.cpp
parent70ec1dd14d66a088be290908d2985652b4863892 (diff)
downloadllvm-1cb63dc2d59233ac71b4399b6f90d3208c50a791.zip
llvm-1cb63dc2d59233ac71b4399b6f90d3208c50a791.tar.gz
llvm-1cb63dc2d59233ac71b4399b6f90d3208c50a791.tar.bz2
Rename skipDebugInfo -> skipDebugIntrinsics, NFC
This addresses post-commit feedback about the name 'skipDebugInfo' being misleading. This name could be interpreted as meaning 'a function that skips instructions with debug locations'. The new name, 'skipDebugIntrinsics', makes it clear that this function only skips debug info intrinsics. Thanks to Adrian Prantl for pointing this out! llvm-svn: 335667
Diffstat (limited to 'llvm/lib/IR/BasicBlock.cpp')
-rw-r--r--llvm/lib/IR/BasicBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp
index 005a772..7c3e586 100644
--- a/llvm/lib/IR/BasicBlock.cpp
+++ b/llvm/lib/IR/BasicBlock.cpp
@@ -480,7 +480,7 @@ Optional<uint64_t> BasicBlock::getIrrLoopHeaderWeight() const {
return Optional<uint64_t>();
}
-BasicBlock::iterator llvm::skipDebugInfo(BasicBlock::iterator It) {
+BasicBlock::iterator llvm::skipDebugIntrinsics(BasicBlock::iterator It) {
while (isa<DbgInfoIntrinsic>(It))
++It;
return It;