aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-05-25 20:43:47 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-05-25 20:43:47 +0000
commit1812268126996049b0bedbcde079484d7136b8af (patch)
tree296044b5fd8ebb84703c23cce53a63e525df1bb6 /lib/Target/SparcV9
parent6b1f58b6a4407a5b28ae7d6d624a17e8fe45b448 (diff)
downloadexternal_llvm-1812268126996049b0bedbcde079484d7136b8af.zip
external_llvm-1812268126996049b0bedbcde079484d7136b8af.tar.gz
external_llvm-1812268126996049b0bedbcde079484d7136b8af.tar.bz2
Add a (not very meaningful) default constructor for AllocInfo objects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13773 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9')
-rw-r--r--lib/Target/SparcV9/RegAlloc/AllocInfo.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/Target/SparcV9/RegAlloc/AllocInfo.h b/lib/Target/SparcV9/RegAlloc/AllocInfo.h
index 6a7304a..e18967b 100644
--- a/lib/Target/SparcV9/RegAlloc/AllocInfo.h
+++ b/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.
///