forked from OSchip/llvm-project
parent
acfa507663
commit
61204a9189
|
@ -102,7 +102,8 @@ public:
|
||||||
return opType;
|
return opType;
|
||||||
}
|
}
|
||||||
inline Value* getVRegValue () const {
|
inline Value* getVRegValue () const {
|
||||||
assert(opType == MO_VirtualRegister || opType == MO_CCRegister);
|
assert(opType == MO_VirtualRegister || opType == MO_CCRegister ||
|
||||||
|
opType == MO_PCRelativeDisp);
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
inline unsigned int getMachineRegNum() const {
|
inline unsigned int getMachineRegNum() const {
|
||||||
|
@ -377,8 +378,8 @@ public:
|
||||||
// and inlining it avoids a serious circurality in link order.
|
// and inlining it avoids a serious circurality in link order.
|
||||||
inline void dropAllReferences() {
|
inline void dropAllReferences() {
|
||||||
for (unsigned i=0, N=tempVec.size(); i < N; i++)
|
for (unsigned i=0, N=tempVec.size(); i < N; i++)
|
||||||
if (tempVec[i]->getValueType() == Value::InstructionVal)
|
if (Instruction *I = tempVec[i]->castInstruction())
|
||||||
((Instruction*) tempVec[i])->dropAllReferences();
|
I->dropAllReferences();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue