1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

[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.

llvm-svn: 255000
This commit is contained in:
Sanjoy Das 2015-12-08 03:50:32 +00:00
parent c83f6a4411
commit 90bb44dfe3
2 changed files with 1 additions and 4 deletions

View File

@ -1167,9 +1167,6 @@ template <typename InputTy> class OperandBundleDefT {
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)) {}

View File

@ -1191,7 +1191,7 @@ bool llvm::InlineFunction(CallSite CS, InlineFunctionInfo &IFI,
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;