mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[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. llvm-svn: 249509
This commit is contained in:
parent
3621ece8f2
commit
01d951e9b2
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user