diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-02-09 04:22:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-02-09 04:22:52 +0000 |
| commit | ba97264e72ca53a673606644cc4c69c7c37c8dc5 (patch) | |
| tree | 305e2ba4b194489e801db032a88e14bc3ede80ce /llvm/lib/ExecutionEngine | |
| parent | 1cd22199dd07a19eabe5a5b078c720662b5af1a0 (diff) | |
| download | bcm5719-llvm-ba97264e72ca53a673606644cc4c69c7c37c8dc5.tar.gz bcm5719-llvm-ba97264e72ca53a673606644cc4c69c7c37c8dc5.zip | |
rename fields of constant pool entries
llvm-svn: 26076
Diffstat (limited to 'llvm/lib/ExecutionEngine')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp index d2f943f4016..5309692ec0f 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -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); } } |

