|
@@ -36,7 +36,7 @@ raw_ostream &operator<<(raw_ostream &OS, const PseudoSourceValue* PSV);
|
|
/// below the stack frame (e.g., argument space), or constant pool.
|
|
/// below the stack frame (e.g., argument space), or constant pool.
|
|
class PseudoSourceValue {
|
|
class PseudoSourceValue {
|
|
public:
|
|
public:
|
|
- enum PSVKind {
|
|
|
|
|
|
+ enum PSVKind : unsigned {
|
|
Stack,
|
|
Stack,
|
|
GOT,
|
|
GOT,
|
|
JumpTable,
|
|
JumpTable,
|
|
@@ -48,7 +48,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
private:
|
|
private:
|
|
- PSVKind Kind;
|
|
|
|
|
|
+ unsigned Kind;
|
|
unsigned AddressSpace;
|
|
unsigned AddressSpace;
|
|
friend raw_ostream &llvm::operator<<(raw_ostream &OS,
|
|
friend raw_ostream &llvm::operator<<(raw_ostream &OS,
|
|
const PseudoSourceValue* PSV);
|
|
const PseudoSourceValue* PSV);
|
|
@@ -60,11 +60,11 @@ private:
|
|
virtual void printCustom(raw_ostream &O) const;
|
|
virtual void printCustom(raw_ostream &O) const;
|
|
|
|
|
|
public:
|
|
public:
|
|
- explicit PseudoSourceValue(PSVKind Kind, const TargetInstrInfo &TII);
|
|
|
|
|
|
+ explicit PseudoSourceValue(unsigned Kind, const TargetInstrInfo &TII);
|
|
|
|
|
|
virtual ~PseudoSourceValue();
|
|
virtual ~PseudoSourceValue();
|
|
|
|
|
|
- PSVKind kind() const { return Kind; }
|
|
|
|
|
|
+ unsigned kind() const { return Kind; }
|
|
|
|
|
|
bool isStack() const { return Kind == Stack; }
|
|
bool isStack() const { return Kind == Stack; }
|
|
bool isGOT() const { return Kind == GOT; }
|
|
bool isGOT() const { return Kind == GOT; }
|
|
@@ -116,7 +116,7 @@ public:
|
|
|
|
|
|
class CallEntryPseudoSourceValue : public PseudoSourceValue {
|
|
class CallEntryPseudoSourceValue : public PseudoSourceValue {
|
|
protected:
|
|
protected:
|
|
- CallEntryPseudoSourceValue(PSVKind Kind, const TargetInstrInfo &TII);
|
|
|
|
|
|
+ CallEntryPseudoSourceValue(unsigned Kind, const TargetInstrInfo &TII);
|
|
|
|
|
|
public:
|
|
public:
|
|
bool isConstant(const MachineFrameInfo *) const override;
|
|
bool isConstant(const MachineFrameInfo *) const override;
|