mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Move DebugLocs around instead of copying.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228491 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -595,10 +595,10 @@ void MachineInstr::addImplicitDefUseOperands(MachineFunction &MF) {
|
||||
/// implicit operands. It reserves space for the number of operands specified by
|
||||
/// the MCInstrDesc.
|
||||
MachineInstr::MachineInstr(MachineFunction &MF, const MCInstrDesc &tid,
|
||||
const DebugLoc dl, bool NoImp)
|
||||
: MCID(&tid), Parent(nullptr), Operands(nullptr), NumOperands(0),
|
||||
Flags(0), AsmPrinterFlags(0),
|
||||
NumMemRefs(0), MemRefs(nullptr), debugLoc(dl) {
|
||||
DebugLoc dl, bool NoImp)
|
||||
: MCID(&tid), Parent(nullptr), Operands(nullptr), NumOperands(0), Flags(0),
|
||||
AsmPrinterFlags(0), NumMemRefs(0), MemRefs(nullptr),
|
||||
debugLoc(std::move(dl)) {
|
||||
assert(debugLoc.hasTrivialDestructor() && "Expected trivial destructor");
|
||||
|
||||
// Reserve space for the expected number of operands.
|
||||
|
Reference in New Issue
Block a user