summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2017-03-26 14:24:06 +0000
committerChandler Carruth <chandlerc@gmail.com>2017-03-26 14:24:06 +0000
commitde27a6dcfa565aeaceb481118fbe47bf3fb31b91 (patch)
tree7e7bfa56e1b4ea3e3fcc214136168a4742913d8b /llvm
parent311c5ddb5b9c1474d0ece42b4b457d6c4f475499 (diff)
downloadbcm5719-llvm-de27a6dcfa565aeaceb481118fbe47bf3fb31b91.tar.gz
bcm5719-llvm-de27a6dcfa565aeaceb481118fbe47bf3fb31b91.zip
[IR] Switch to more normal template parameter names ending in `T`
instead of `Ty`. The `Ty` suffix is much more commonly used for LLVM `Type` variable names, so this seemed like a particularly confusing collision. llvm-svn: 298808
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/IR/Instructions.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/include/llvm/IR/Instructions.h b/llvm/include/llvm/IR/Instructions.h
index ded2b6b3fc8..9c253a1a6bf 100644
--- a/llvm/include/llvm/IR/Instructions.h
+++ b/llvm/include/llvm/IR/Instructions.h
@@ -3093,18 +3093,18 @@ public:
// -2
static const unsigned DefaultPseudoIndex = static_cast<unsigned>(~0L-1);
- template <class SwitchInstTy, class ConstantIntTy, class BasicBlockTy>
+ template <class SwitchInstT, class ConstantIntT, class BasicBlockT>
class CaseIteratorT
: public iterator_facade_base<
- CaseIteratorT<SwitchInstTy, ConstantIntTy, BasicBlockTy>,
+ CaseIteratorT<SwitchInstT, ConstantIntT, BasicBlockT>,
std::random_access_iterator_tag,
- CaseIteratorT<SwitchInstTy, ConstantIntTy, BasicBlockTy>> {
+ CaseIteratorT<SwitchInstT, ConstantIntT, BasicBlockT>> {
protected:
- SwitchInstTy *SI;
+ SwitchInstT *SI;
ptrdiff_t Index;
public:
- typedef CaseIteratorT<SwitchInstTy, ConstantIntTy, BasicBlockTy> Self;
+ typedef CaseIteratorT<SwitchInstT, ConstantIntT, BasicBlockT> Self;
/// Default constructed iterator is in an invalid state until assigned to
/// a case for a particular switch.
@@ -3112,14 +3112,14 @@ public:
/// Initializes case iterator for given SwitchInst and for given
/// case number.
- CaseIteratorT(SwitchInstTy *SI, unsigned CaseNum) {
+ CaseIteratorT(SwitchInstT *SI, unsigned CaseNum) {
this->SI = SI;
Index = CaseNum;
}
/// Initializes case iterator for given SwitchInst and for given
/// TerminatorInst's successor index.
- static Self fromSuccessorIndex(SwitchInstTy *SI, unsigned SuccessorIndex) {
+ static Self fromSuccessorIndex(SwitchInstT *SI, unsigned SuccessorIndex) {
assert(SuccessorIndex < SI->getNumSuccessors() &&
"Successor index # out of range!");
return SuccessorIndex != 0 ?
@@ -3128,14 +3128,14 @@ public:
}
/// Resolves case value for current case.
- ConstantIntTy *getCaseValue() {
+ ConstantIntT *getCaseValue() {
assert((unsigned)Index < SI->getNumCases() &&
"Index out the number of cases.");
- return reinterpret_cast<ConstantIntTy*>(SI->getOperand(2 + Index*2));
+ return reinterpret_cast<ConstantIntT *>(SI->getOperand(2 + Index * 2));
}
/// Resolves successor for current case.
- BasicBlockTy *getCaseSuccessor() {
+ BasicBlockT *getCaseSuccessor() {
assert(((unsigned)Index < SI->getNumCases() ||
(unsigned)Index == DefaultPseudoIndex) &&
"Index out the number of cases.");
OpenPOWER on IntegriCloud