[llvm-commits] CVS: llvm/lib/Target/SparcV9/RegAlloc/AllocInfo.h
Brian Gaeke
gaeke at cs.uiuc.edu
Tue May 25 15:45:03 PDT 2004
Changes in directory llvm/lib/Target/SparcV9/RegAlloc:
AllocInfo.h updated: 1.7 -> 1.8
---
Log message:
Add a (not very meaningful) default constructor for AllocInfo objects.
---
Diffs of the changes: (+8 -4)
Index: llvm/lib/Target/SparcV9/RegAlloc/AllocInfo.h
diff -u llvm/lib/Target/SparcV9/RegAlloc/AllocInfo.h:1.7 llvm/lib/Target/SparcV9/RegAlloc/AllocInfo.h:1.8
--- llvm/lib/Target/SparcV9/RegAlloc/AllocInfo.h:1.7 Mon Mar 8 17:22:01 2004
+++ llvm/lib/Target/SparcV9/RegAlloc/AllocInfo.h Tue May 25 15:43:47 2004
@@ -32,10 +32,14 @@
AllocStateTy AllocState;
int Placement;
- AllocInfo (unsigned Instruction_, unsigned Operand_,
- AllocStateTy AllocState_, int Placement_) :
- Instruction (Instruction_), Operand (Operand_),
- AllocState (AllocState_), Placement (Placement_) { }
+ AllocInfo (int Inst_, int Op_, AllocStateTy State_, int Place_) :
+ Instruction(Inst_), Operand(Op_), AllocState(State_), Placement(Place_) { }
+
+ /// AllocInfo constructor -- Default constructor creates an invalid AllocInfo
+ /// (presumably to be replaced with something meaningful later).
+ ///
+ AllocInfo () :
+ Instruction(-1), Operand(-1), AllocState(NotAllocated), Placement(-1) { }
/// getConstantType - Return a StructType representing an AllocInfo object.
///
More information about the llvm-commits
mailing list