mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
* 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:
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user