new method for adding ints

llvm-svn: 29622
This commit is contained in:
Chris Lattner 2006-08-11 18:53:44 +00:00
parent fcb16470ec
commit 7d807827a9

View File

@ -98,6 +98,12 @@ namespace llvm {
void SetOperands(const SDOperand *Ops, unsigned NumOps);
void AddOperand(SDOperand Op);
void AddPointer(const void *Ptr);
void AddInteger(int I) {
Bits.push_back((I >> 0) & 0xFF);
Bits.push_back((I >> 8) & 0xFF);
Bits.push_back((I >> 16) & 0xFF);
Bits.push_back((I >> 24) & 0xFF);
}
unsigned ComputeHash() const;