mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[TableGen] Use make_unique. NFC.
llvm-svn: 246936
This commit is contained in:
parent
65fac6eab4
commit
1cd9958812
@ -1393,7 +1393,7 @@ void AsmMatcherInfo::buildInfo() {
|
||||
if (CGI->TheDef->getValueAsBit("isCodeGenOnly"))
|
||||
continue;
|
||||
|
||||
std::unique_ptr<MatchableInfo> II(new MatchableInfo(*CGI));
|
||||
auto II = llvm::make_unique<MatchableInfo>(*CGI);
|
||||
|
||||
II->initialize(*this, SingletonRegisters, AsmVariantNo, RegisterPrefix);
|
||||
|
||||
@ -1420,7 +1420,7 @@ void AsmMatcherInfo::buildInfo() {
|
||||
.startswith( MatchPrefix))
|
||||
continue;
|
||||
|
||||
std::unique_ptr<MatchableInfo> II(new MatchableInfo(std::move(Alias)));
|
||||
auto II = llvm::make_unique<MatchableInfo>(std::move(Alias));
|
||||
|
||||
II->initialize(*this, SingletonRegisters, AsmVariantNo, RegisterPrefix);
|
||||
|
||||
@ -1489,7 +1489,7 @@ void AsmMatcherInfo::buildInfo() {
|
||||
II->TheDef->getValueAsString("TwoOperandAliasConstraint");
|
||||
if (Constraint != "") {
|
||||
// Start by making a copy of the original matchable.
|
||||
std::unique_ptr<MatchableInfo> AliasII(new MatchableInfo(*II));
|
||||
auto AliasII = llvm::make_unique<MatchableInfo>(*II);
|
||||
|
||||
// Adjust it to be a two-operand alias.
|
||||
AliasII->formTwoOperandAlias(Constraint);
|
||||
|
Loading…
x
Reference in New Issue
Block a user