ConstantPointerRef's are no longer emitted. This saves 20028 bytes in the

bytecode files when compiling 176.gcc, but more importantly will make it
easier to eliminate CPR's in the future (no new .bc revision will be
required to support them)

llvm-svn: 10884
This commit is contained in:
Chris Lattner 2004-01-15 18:46:56 +00:00
parent e2f6317436
commit f4572852dc
1 changed files with 3 additions and 7 deletions

View File

@ -194,13 +194,9 @@ void BytecodeWriter::outputConstant(const Constant *CPV) {
break;
}
case Type::PointerTyID: {
const ConstantPointerRef *CPR = cast<ConstantPointerRef>(CPV);
int Slot = Table.getSlot((Value*)CPR->getValue());
assert(Slot != -1 && "Global used but not available!!");
output_vbr((unsigned)Slot, Out);
break;
}
case Type::PointerTyID:
assert(0 && "No non-null, non-constant-expr constants allowed!");
abort();
case Type::FloatTyID: { // Floating point types...
float Tmp = (float)cast<ConstantFP>(CPV)->getValue();