diff options
author | Vedant Kumar <vsk@apple.com> | 2018-06-26 21:16:59 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2018-06-26 21:16:59 +0000 |
commit | 1cb63dc2d59233ac71b4399b6f90d3208c50a791 (patch) | |
tree | be01177cb486756fa17c8cc853bbf83ae5b61dd4 /llvm/lib/IR | |
parent | 70ec1dd14d66a088be290908d2985652b4863892 (diff) | |
download | bcm5719-llvm-1cb63dc2d59233ac71b4399b6f90d3208c50a791.tar.gz bcm5719-llvm-1cb63dc2d59233ac71b4399b6f90d3208c50a791.zip |
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')
-rw-r--r-- | llvm/lib/IR/BasicBlock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp index 005a77261f9..7c3e5862d1c 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; |