mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9269 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -114,7 +114,7 @@ HANDLE_MEMORY_INST(25, GetElementPtr, GetElementPtrInst)
|
||||
|
||||
// Other operators...
|
||||
FIRST_OTHER_INST(26)
|
||||
HANDLE_OTHER_INST(26, PHINode, PHINode ) // PHI node instruction
|
||||
HANDLE_OTHER_INST(26, PHI , PHINode ) // PHI node instruction
|
||||
HANDLE_OTHER_INST(27, Cast , CastInst ) // Type cast
|
||||
HANDLE_OTHER_INST(28, Call , CallInst ) // Call a function
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ class PHINode : public Instruction {
|
||||
public:
|
||||
PHINode(const Type *Ty, const std::string &Name = "",
|
||||
Instruction *InsertBefore = 0)
|
||||
: Instruction(Ty, Instruction::PHINode, Name, InsertBefore) {
|
||||
: Instruction(Ty, Instruction::PHI, Name, InsertBefore) {
|
||||
}
|
||||
|
||||
virtual Instruction *clone() const { return new PHINode(*this); }
|
||||
@@ -98,7 +98,7 @@ public:
|
||||
/// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||
static inline bool classof(const PHINode *) { return true; }
|
||||
static inline bool classof(const Instruction *I) {
|
||||
return I->getOpcode() == Instruction::PHINode;
|
||||
return I->getOpcode() == Instruction::PHI;
|
||||
}
|
||||
static inline bool classof(const Value *V) {
|
||||
return isa<Instruction>(V) && classof(cast<Instruction>(V));
|
||||
|
||||
Reference in New Issue
Block a user