[llvm-commits] CVS: llvm/lib/VMCore/InstrTypes.cpp Instruction.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 19 16:35:35 PDT 2003
Changes in directory llvm/lib/VMCore:
InstrTypes.cpp updated: 1.20 -> 1.21
Instruction.cpp updated: 1.28 -> 1.29
---
Log message:
Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions.
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/VMCore/InstrTypes.cpp
diff -u llvm/lib/VMCore/InstrTypes.cpp:1.20 llvm/lib/VMCore/InstrTypes.cpp:1.21
--- llvm/lib/VMCore/InstrTypes.cpp:1.20 Wed Mar 5 15:15:12 2003
+++ llvm/lib/VMCore/InstrTypes.cpp Sun Oct 19 16:34:28 2003
@@ -25,7 +25,7 @@
//===----------------------------------------------------------------------===//
PHINode::PHINode(const PHINode &PN)
- : Instruction(PN.getType(), Instruction::PHINode) {
+ : Instruction(PN.getType(), Instruction::PHI) {
Operands.reserve(PN.Operands.size());
for (unsigned i = 0; i < PN.Operands.size(); i+=2) {
Operands.push_back(Use(PN.Operands[i], this));
Index: llvm/lib/VMCore/Instruction.cpp
diff -u llvm/lib/VMCore/Instruction.cpp:1.28 llvm/lib/VMCore/Instruction.cpp:1.29
--- llvm/lib/VMCore/Instruction.cpp:1.28 Sat Oct 18 00:57:20 2003
+++ llvm/lib/VMCore/Instruction.cpp Sun Oct 19 16:34:28 2003
@@ -87,7 +87,7 @@
case GetElementPtr: return "getelementptr";
// Other instructions...
- case PHINode: return "phi";
+ case PHI: return "phi";
case Cast: return "cast";
case Call: return "call";
case Shl: return "shl";
More information about the llvm-commits
mailing list