mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
rename fields of constant pool entries
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26076 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -566,18 +566,16 @@ void JITEmitter::finishFunction(MachineFunction &F) {
|
||||
}
|
||||
|
||||
void JITEmitter::emitConstantPool(MachineConstantPool *MCP) {
|
||||
const std::vector<std::pair<Constant*,unsigned> > &Constants = MCP->getConstants();
|
||||
const std::vector<MachineConstantPoolEntry> &Constants = MCP->getConstants();
|
||||
if (Constants.empty()) return;
|
||||
|
||||
for (unsigned i = 0, e = Constants.size(); i != e; ++i) {
|
||||
const Type *Ty = Constants[i].first->getType();
|
||||
const Type *Ty = Constants[i].Val->getType();
|
||||
unsigned Size = (unsigned)TheJIT->getTargetData().getTypeSize(Ty);
|
||||
unsigned Alignment = (Constants[i].second == 0)
|
||||
? TheJIT->getTargetData().getTypeAlignment(Ty)
|
||||
: Constants[i].second;
|
||||
unsigned Alignment = Constants[i].Alignment;
|
||||
|
||||
void *Addr = MemMgr.allocateConstant(Size, Alignment);
|
||||
TheJIT->InitializeMemory(Constants[i].first, Addr);
|
||||
TheJIT->InitializeMemory(Constants[i].Val, Addr);
|
||||
ConstantPoolAddresses.push_back(Addr);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user