mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 15:19:33 +00:00
[CodeGen] Remove unused MachineMemOperand::print wrappers (PR41772)
As noted on PR41772, the static analyzer reports that the MachineMemOperand::print partial wrappers set a number of args to null pointers that were then dereferenced in the actual implementation. It turns out that these wrappers are not being used at all (hence why we're not seeing any crashes), so I'd like to propose we just get rid of them. Differential Revision: https://reviews.llvm.org/D68208 llvm-svn: 373484
This commit is contained in:
parent
7afee17f23
commit
e3456e84d6
@ -293,8 +293,6 @@ public:
|
||||
|
||||
/// Support for operator<<.
|
||||
/// @{
|
||||
void print(raw_ostream &OS) const;
|
||||
void print(raw_ostream &OS, ModuleSlotTracker &MST) const;
|
||||
void print(raw_ostream &OS, ModuleSlotTracker &MST,
|
||||
SmallVectorImpl<StringRef> &SSNs, const LLVMContext &Context,
|
||||
const MachineFrameInfo *MFI, const TargetInstrInfo *TII) const;
|
||||
@ -319,11 +317,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
inline raw_ostream &operator<<(raw_ostream &OS, const MachineMemOperand &MRO) {
|
||||
MRO.print(OS);
|
||||
return OS;
|
||||
}
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
|
@ -1065,17 +1065,6 @@ uint64_t MachineMemOperand::getAlignment() const {
|
||||
return MinAlign(getBaseAlignment(), getOffset());
|
||||
}
|
||||
|
||||
void MachineMemOperand::print(raw_ostream &OS) const {
|
||||
ModuleSlotTracker DummyMST(nullptr);
|
||||
print(OS, DummyMST);
|
||||
}
|
||||
|
||||
void MachineMemOperand::print(raw_ostream &OS, ModuleSlotTracker &MST) const {
|
||||
SmallVector<StringRef, 0> SSNs;
|
||||
LLVMContext Ctx;
|
||||
print(OS, MST, SSNs, Ctx, nullptr, nullptr);
|
||||
}
|
||||
|
||||
void MachineMemOperand::print(raw_ostream &OS, ModuleSlotTracker &MST,
|
||||
SmallVectorImpl<StringRef> &SSNs,
|
||||
const LLVMContext &Context,
|
||||
|
Loading…
Reference in New Issue
Block a user