[llvm] r255000 - [OperandBundles] Remove unncessary constructor
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 7 19:50:33 PST 2015
Author: sanjoy
Date: Mon Dec 7 21:50:32 2015
New Revision: 255000
URL: http://llvm.org/viewvc/llvm-project?rev=255000&view=rev
Log:
[OperandBundles] Remove unncessary constructor
The StringRef constructor is unnecessary (since we're converting to
std::string anyway), and having it requires an explicit call to
StringRef's or std::string's constructor.
Modified:
llvm/trunk/include/llvm/IR/InstrTypes.h
llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
Modified: llvm/trunk/include/llvm/IR/InstrTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/InstrTypes.h?rev=255000&r1=254999&r2=255000&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/InstrTypes.h (original)
+++ llvm/trunk/include/llvm/IR/InstrTypes.h Mon Dec 7 21:50:32 2015
@@ -1167,9 +1167,6 @@ template <typename InputTy> class Operan
std::vector<InputTy> Inputs;
public:
- explicit OperandBundleDefT(StringRef Tag, std::vector<InputTy> Inputs)
- : Tag(Tag), Inputs(std::move(Inputs)) {}
-
explicit OperandBundleDefT(std::string Tag, std::vector<InputTy> Inputs)
: Tag(std::move(Tag)), Inputs(std::move(Inputs)) {}
Modified: llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp?rev=255000&r1=254999&r2=255000&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp Mon Dec 7 21:50:32 2015
@@ -1191,7 +1191,7 @@ bool llvm::InlineFunction(CallSite CS, I
MergedDeoptArgs.insert(MergedDeoptArgs.end(), ChildOB.Inputs.begin(),
ChildOB.Inputs.end());
- OpDefs.emplace_back(StringRef("deopt"), std::move(MergedDeoptArgs));
+ OpDefs.emplace_back("deopt", std::move(MergedDeoptArgs));
}
Instruction *NewI = nullptr;
More information about the llvm-commits
mailing list