From 9f70f927c58a652155a05032b6d44fd4dbe9a3be Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Wed, 7 Oct 2015 02:39:21 +0000 Subject: [PATCH] [OperandBundles] Remove a useless accessor from OperandBundleUser Since the `const` version of `getOperandBundle` returns a value of the same type as the non-`const` version, the non-`const` version is redundant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249509 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/InstrTypes.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/llvm/IR/InstrTypes.h b/include/llvm/IR/InstrTypes.h index 0c2ff91b00a..b4d0fec21b1 100644 --- a/include/llvm/IR/InstrTypes.h +++ b/include/llvm/IR/InstrTypes.h @@ -1204,15 +1204,6 @@ public: return OperandBundleUse(BOI->Tag->getKey(), Inputs); } - /// \brief Return the operand bundle at a specific index. - OperandBundleUse getOperandBundle(unsigned Index) { - assert(Index < getNumOperandBundles() && "Index out of bounds!"); - auto *BOI = bundle_op_info_begin() + Index; - auto op_begin = static_cast(this)->op_begin(); - ArrayRef Inputs(op_begin + BOI->Begin, op_begin + BOI->End); - return OperandBundleUse(BOI->Tag->getKey(), Inputs); - } - protected: /// \brief Used to keep track of an operand bundle. See the main comment on /// OperandBundleUser above. -- 2.34.1