[OperandBundles] Remove a useless accessor from OperandBundleUser
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 7 Oct 2015 02:39:21 +0000 (02:39 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 7 Oct 2015 02:39:21 +0000 (02:39 +0000)
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

index 0c2ff91b00a47e9fdf14ab103d15277fa81a25a3..b4d0fec21b1ed4cfc3f16639cfb0d5c625b2d5fb 100644 (file)
@@ -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<InstrTy *>(this)->op_begin();
-    ArrayRef<Use> 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.