Skip to content

Commit 47cef55

Browse files
authored
[AsmPrinter] Replace improper use of Register with MCRegUnit (NFC) (llvm#167682)
1 parent a799a8e commit 47cef55

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -589,9 +589,9 @@ struct FwdRegParamInfo {
589589

590590
/// Register worklist for finding call site values.
591591
using FwdRegWorklist = MapVector<uint64_t, SmallVector<FwdRegParamInfo, 2>>;
592-
/// Container for the set of registers known to be clobbered on the path to a
593-
/// call site.
594-
using ClobberedRegSet = SmallSet<Register, 16>;
592+
/// Container for the set of register units known to be clobbered on the path
593+
/// to a call site.
594+
using ClobberedRegUnitSet = SmallSet<MCRegUnit, 16>;
595595

596596
/// Append the expression \p Addition to \p Original and return the result.
597597
static const DIExpression *combineDIExpressions(const DIExpression *Original,
@@ -663,7 +663,7 @@ static void addToFwdRegWorklist(FwdRegWorklist &Worklist, unsigned Reg,
663663
static void interpretValues(const MachineInstr *CurMI,
664664
FwdRegWorklist &ForwardedRegWorklist,
665665
ParamSet &Params,
666-
ClobberedRegSet &ClobberedRegUnits) {
666+
ClobberedRegUnitSet &ClobberedRegUnits) {
667667

668668
const MachineFunction *MF = CurMI->getMF();
669669
const DIExpression *EmptyExpr =
@@ -695,7 +695,7 @@ static void interpretValues(const MachineInstr *CurMI,
695695

696696
// If the MI is an instruction defining one or more parameters' forwarding
697697
// registers, add those defines.
698-
ClobberedRegSet NewClobberedRegUnits;
698+
ClobberedRegUnitSet NewClobberedRegUnits;
699699
auto getForwardingRegsDefinedByMI = [&](const MachineInstr &MI,
700700
SmallSetVector<unsigned, 4> &Defs) {
701701
if (MI.isDebugInstr())
@@ -778,7 +778,7 @@ static void interpretValues(const MachineInstr *CurMI,
778778
static bool interpretNextInstr(const MachineInstr *CurMI,
779779
FwdRegWorklist &ForwardedRegWorklist,
780780
ParamSet &Params,
781-
ClobberedRegSet &ClobberedRegUnits) {
781+
ClobberedRegUnitSet &ClobberedRegUnits) {
782782
// Skip bundle headers.
783783
if (CurMI->isBundle())
784784
return true;
@@ -848,7 +848,7 @@ static void collectCallSiteParameters(const MachineInstr *CallMI,
848848
bool ShouldTryEmitEntryVals = MBB->getIterator() == MF->begin();
849849

850850
// Search for a loading value in forwarding registers inside call delay slot.
851-
ClobberedRegSet ClobberedRegUnits;
851+
ClobberedRegUnitSet ClobberedRegUnits;
852852
if (CallMI->hasDelaySlot()) {
853853
auto Suc = std::next(CallMI->getIterator());
854854
// Only one-instruction delay slot is supported.

0 commit comments

Comments
 (0)