static ConstPoolInt *getUnsignedConstant(ConstantPool &CP, uint64_t V,
const Type *Ty) {
// FIXME: Lookup prexisting constant in table!
+ if (Ty->isPointerType()) Ty = Type::ULongTy;
ConstPoolInt *CPI;
CPI = Ty->isSigned() ? new ConstPoolSInt(Ty, V) : new ConstPoolUInt(Ty, V);
assert(CPV->getType()->isIntegral() && "Must have an integral type!");
return (ConstPoolInt*)CPV;
} // end case Instruction::Cast
- // TODO: Handle SUB (at least!)
+ // TODO: Handle SUB, SHR?
} // end switch