mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 00:10:37 +00:00
[stackmaps] Remove an unneeded member variable [NFC]
llvm-svn: 279590
This commit is contained in:
parent
3418266527
commit
e0cd757614
@ -75,7 +75,6 @@ public:
|
||||
private:
|
||||
const MachineInstr *MI;
|
||||
bool HasDef;
|
||||
bool IsAnyReg;
|
||||
|
||||
unsigned getMetaIdx(unsigned Pos = 0) const {
|
||||
assert(Pos < MetaEnd && "Meta operand index out of range.");
|
||||
@ -89,7 +88,7 @@ private:
|
||||
public:
|
||||
explicit PatchPointOpers(const MachineInstr *MI);
|
||||
|
||||
bool isAnyReg() const { return IsAnyReg; }
|
||||
bool isAnyReg() const { return (getCallingConv() == CallingConv::AnyReg); }
|
||||
bool hasDef() const { return HasDef; }
|
||||
|
||||
/// Return the ID for the given patchpoint.
|
||||
@ -126,7 +125,7 @@ public:
|
||||
/// Get the index at which stack map locations will be recorded.
|
||||
/// Arguments are not recorded unless the anyregcc convention is used.
|
||||
unsigned getStackMapStartIdx() const {
|
||||
if (IsAnyReg)
|
||||
if (isAnyReg())
|
||||
return getArgIdx();
|
||||
return getVarIdx();
|
||||
}
|
||||
|
@ -43,8 +43,7 @@ StackMapOpers::StackMapOpers(const MachineInstr *MI)
|
||||
|
||||
PatchPointOpers::PatchPointOpers(const MachineInstr *MI)
|
||||
: MI(MI), HasDef(MI->getOperand(0).isReg() && MI->getOperand(0).isDef() &&
|
||||
!MI->getOperand(0).isImplicit()),
|
||||
IsAnyReg(getCallingConv() == CallingConv::AnyReg) {
|
||||
!MI->getOperand(0).isImplicit()) {
|
||||
#ifndef NDEBUG
|
||||
unsigned CheckStartIdx = 0, e = MI->getNumOperands();
|
||||
while (CheckStartIdx < e && MI->getOperand(CheckStartIdx).isReg() &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user