[PATCH] D75962: [CFG/BasicBlock] Rename pred_const to const_pred. [NFC]
Alina Sbirlea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 25 13:00:13 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb539f18c5656: [CFG/BasicBlock] Rename pred_const to const_pred. [NFC] (authored by asbirlea).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75962/new/
https://reviews.llvm.org/D75962
Files:
llvm/include/llvm/IR/CFG.h
Index: llvm/include/llvm/IR/CFG.h
===================================================================
--- llvm/include/llvm/IR/CFG.h
+++ llvm/include/llvm/IR/CFG.h
@@ -103,7 +103,7 @@
using const_pred_iterator =
PredIterator<const BasicBlock, Value::const_user_iterator>;
using pred_range = iterator_range<pred_iterator>;
-using pred_const_range = iterator_range<const_pred_iterator>;
+using const_pred_range = iterator_range<const_pred_iterator>;
inline pred_iterator pred_begin(BasicBlock *BB) { return pred_iterator(BB); }
inline const_pred_iterator pred_begin(const BasicBlock *BB) {
@@ -124,8 +124,8 @@
inline pred_range predecessors(BasicBlock *BB) {
return pred_range(pred_begin(BB), pred_end(BB));
}
-inline pred_const_range predecessors(const BasicBlock *BB) {
- return pred_const_range(pred_begin(BB), pred_end(BB));
+inline const_pred_range predecessors(const BasicBlock *BB) {
+ return const_pred_range(pred_begin(BB), pred_end(BB));
}
//===----------------------------------------------------------------------===//
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75962.252652.patch
Type: text/x-patch
Size: 1051 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200325/51831e04/attachment.bin>
More information about the llvm-commits
mailing list