diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-05-25 20:43:47 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-05-25 20:43:47 +0000 |
commit | 230deea60f0ce172dda03d7803a6d3bd851cdba9 (patch) | |
tree | 016c1c0a23c74b9904622c71bc3d24317ce466ce | |
parent | abac0ef0b79f1b10b8502b4672ed770545fd8979 (diff) | |
download | bcm5719-llvm-230deea60f0ce172dda03d7803a6d3bd851cdba9.tar.gz bcm5719-llvm-230deea60f0ce172dda03d7803a6d3bd851cdba9.zip |
Add a (not very meaningful) default constructor for AllocInfo objects.
llvm-svn: 13773
-rw-r--r-- | llvm/lib/Target/SparcV9/RegAlloc/AllocInfo.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/llvm/lib/Target/SparcV9/RegAlloc/AllocInfo.h b/llvm/lib/Target/SparcV9/RegAlloc/AllocInfo.h index 6a7304a62e2..e18967b8ba8 100644 --- a/llvm/lib/Target/SparcV9/RegAlloc/AllocInfo.h +++ b/llvm/lib/Target/SparcV9/RegAlloc/AllocInfo.h @@ -32,10 +32,14 @@ struct AllocInfo { 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. /// |