mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
Roll DbgVariable::setMInsn into the constructor. No functional changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209920 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1176,15 +1176,13 @@ DwarfDebug::collectVariableInfo(SmallPtrSet<const MDNode *, 16> &Processed) {
|
||||
const MachineInstr *MInsn = Ranges.front().first;
|
||||
assert(MInsn->isDebugValue() && "History must begin with debug value");
|
||||
DbgVariable *AbsVar = findAbstractVariable(DV, MInsn->getDebugLoc());
|
||||
DbgVariable *RegVar = new DbgVariable(DV, AbsVar, this);
|
||||
DbgVariable *RegVar = new DbgVariable(MInsn, AbsVar, this);
|
||||
if (!addCurrentFnArgument(RegVar, Scope))
|
||||
addScopeVariable(Scope, RegVar);
|
||||
|
||||
// Check if the first DBG_VALUE is valid for the rest of the function.
|
||||
if (Ranges.size() == 1 && Ranges.front().second == nullptr) {
|
||||
RegVar->setMInsn(MInsn);
|
||||
if (Ranges.size() == 1 && Ranges.front().second == nullptr)
|
||||
continue;
|
||||
}
|
||||
|
||||
// Handle multiple DBG_VALUE instructions describing one variable.
|
||||
RegVar->setDotDebugLocOffset(DotDebugLocEntries.size());
|
||||
|
Reference in New Issue
Block a user