* Use new style casts more

* Add real support for global variable addresses initializing constants
* Fix encoding/decoding of VarArgs calls
* Support the Invoke instruction


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@761 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-10-13 06:48:38 +00:00
parent 05950c34a4
commit 1b98c5c6c3
3 changed files with 41 additions and 25 deletions
+2 -6
View File
@@ -61,9 +61,6 @@ BytecodeWriter::BytecodeWriter(deque<unsigned char> &o, const Module *M)
outputSymbolTable(*M->getSymbolTable());
}
// TODO: REMOVE
#include "llvm/Assembly/Writer.h"
void BytecodeWriter::outputConstants(bool isMethod) {
BytecodeBlock CPool(BytecodeFormat::ConstantPool, Out);
@@ -109,8 +106,7 @@ void BytecodeWriter::outputConstants(bool isMethod) {
// << Out.size() << "\n";
outputConstant(CPV);
} else {
const Type *Ty = cast<const Type>(V);
outputType(Ty);
outputType(cast<const Type>(V));
}
}
}
@@ -130,7 +126,7 @@ void BytecodeWriter::outputModuleInfoBlock(const Module *M) {
isa<ConstPoolVal>(GV);
output_vbr(oSlot, Out);
// If we have an initialized, output it now.
// If we have an initializer, output it now.
if (GV->hasInitializer()) {
Slot = Table.getValSlot(GV->getInitializer());
assert(Slot != -1 && "No slot for global var initializer!");