diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index fde48a30a8203..30db817ba3144 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -589,9 +589,9 @@ struct FwdRegParamInfo { /// Register worklist for finding call site values. using FwdRegWorklist = MapVector>; -/// Container for the set of registers known to be clobbered on the path to a -/// call site. -using ClobberedRegSet = SmallSet; +/// Container for the set of register units known to be clobbered on the path +/// to a call site. +using ClobberedRegUnitSet = SmallSet; /// Append the expression \p Addition to \p Original and return the result. static const DIExpression *combineDIExpressions(const DIExpression *Original, @@ -663,7 +663,7 @@ static void addToFwdRegWorklist(FwdRegWorklist &Worklist, unsigned Reg, static void interpretValues(const MachineInstr *CurMI, FwdRegWorklist &ForwardedRegWorklist, ParamSet &Params, - ClobberedRegSet &ClobberedRegUnits) { + ClobberedRegUnitSet &ClobberedRegUnits) { const MachineFunction *MF = CurMI->getMF(); const DIExpression *EmptyExpr = @@ -695,7 +695,7 @@ static void interpretValues(const MachineInstr *CurMI, // If the MI is an instruction defining one or more parameters' forwarding // registers, add those defines. - ClobberedRegSet NewClobberedRegUnits; + ClobberedRegUnitSet NewClobberedRegUnits; auto getForwardingRegsDefinedByMI = [&](const MachineInstr &MI, SmallSetVector &Defs) { if (MI.isDebugInstr()) @@ -778,7 +778,7 @@ static void interpretValues(const MachineInstr *CurMI, static bool interpretNextInstr(const MachineInstr *CurMI, FwdRegWorklist &ForwardedRegWorklist, ParamSet &Params, - ClobberedRegSet &ClobberedRegUnits) { + ClobberedRegUnitSet &ClobberedRegUnits) { // Skip bundle headers. if (CurMI->isBundle()) return true; @@ -848,7 +848,7 @@ static void collectCallSiteParameters(const MachineInstr *CallMI, bool ShouldTryEmitEntryVals = MBB->getIterator() == MF->begin(); // Search for a loading value in forwarding registers inside call delay slot. - ClobberedRegSet ClobberedRegUnits; + ClobberedRegUnitSet ClobberedRegUnits; if (CallMI->hasDelaySlot()) { auto Suc = std::next(CallMI->getIterator()); // Only one-instruction delay slot is supported.