[OperandBundles] Address review on r253446; NFC

Post-commit review by David Blaikie, thanks David!

llvm-svn: 253494
This commit is contained in:
Sanjoy Das 2015-11-18 19:44:59 +00:00
parent 3de08c5f0c
commit 87f03971fd
1 changed files with 5 additions and 5 deletions

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(); }