[OperandBundles] Address review on r253446; NFC

Post-commit review by David Blaikie, thanks David!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sanjoy Das 2015-11-18 19:44:59 +00:00
parent a5be9e3cfb
commit 985201d38c

View File

@ -1160,18 +1160,18 @@ template <typename InputTy> class OperandBundleDefT {
std::vector<InputTy> Inputs;
public:
explicit OperandBundleDefT(StringRef Tag, std::vector<InputTy> &&Inputs)
: Tag(Tag), Inputs(Inputs) {}
explicit OperandBundleDefT(StringRef Tag, std::vector<InputTy> Inputs)
: Tag(Tag), Inputs(std::move(Inputs)) {}
explicit OperandBundleDefT(std::string &&Tag, std::vector<InputTy> &&Inputs)
: Tag(Tag), Inputs(Inputs) {}
explicit OperandBundleDefT(std::string Tag, std::vector<InputTy> Inputs)
: Tag(std::move(Tag)), Inputs(std::move(Inputs)) {}
explicit OperandBundleDefT(const OperandBundleUse &OBU) {
Tag = OBU.getTagName();
Inputs.insert(Inputs.end(), OBU.Inputs.begin(), OBU.Inputs.end());
}
ArrayRef<InputTy> getInputs() const { return Inputs; }
ArrayRef<InputTy> inputs() const { return Inputs; }
typedef typename std::vector<InputTy>::const_iterator input_iterator;
size_t input_size() const { return Inputs.size(); }