mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
[C++11] Replace llvm::tie with std::tie.
The old implementation is no longer needed in C++11. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202644 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -585,7 +585,7 @@ RAFast::defineVirtReg(MachineInstr *MI, unsigned OpNum,
|
||||
"Not a virtual register");
|
||||
LiveRegMap::iterator LRI;
|
||||
bool New;
|
||||
tie(LRI, New) = LiveVirtRegs.insert(LiveReg(VirtReg));
|
||||
std::tie(LRI, New) = LiveVirtRegs.insert(LiveReg(VirtReg));
|
||||
if (New) {
|
||||
// If there is no hint, peek at the only use of this register.
|
||||
if ((!Hint || !TargetRegisterInfo::isPhysicalRegister(Hint)) &&
|
||||
@@ -618,7 +618,7 @@ RAFast::reloadVirtReg(MachineInstr *MI, unsigned OpNum,
|
||||
"Not a virtual register");
|
||||
LiveRegMap::iterator LRI;
|
||||
bool New;
|
||||
tie(LRI, New) = LiveVirtRegs.insert(LiveReg(VirtReg));
|
||||
std::tie(LRI, New) = LiveVirtRegs.insert(LiveReg(VirtReg));
|
||||
MachineOperand &MO = MI->getOperand(OpNum);
|
||||
if (New) {
|
||||
LRI = allocVirtReg(MI, LRI, Hint);
|
||||
|
||||
Reference in New Issue
Block a user