From: Chandler Carruth Date: Sun, 26 Mar 2017 14:24:06 +0000 (+0000) Subject: [IR] Switch to more normal template parameter names ending in `T` X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c068dfa8712840bfd4aea860bc3478330edb708b;p=llvm [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298808 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/Instructions.h b/include/llvm/IR/Instructions.h index ded2b6b3fc8..9c253a1a6bf 100644 --- a/include/llvm/IR/Instructions.h +++ b/include/llvm/IR/Instructions.h @@ -3093,18 +3093,18 @@ public: // -2 static const unsigned DefaultPseudoIndex = static_cast(~0L-1); - template + template class CaseIteratorT : public iterator_facade_base< - CaseIteratorT, + CaseIteratorT, std::random_access_iterator_tag, - CaseIteratorT> { + CaseIteratorT> { protected: - SwitchInstTy *SI; + SwitchInstT *SI; ptrdiff_t Index; public: - typedef CaseIteratorT Self; + typedef CaseIteratorT 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(SI->getOperand(2 + Index*2)); + return reinterpret_cast(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.");