[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 8 20:23:06 PST 2006
Changes in directory llvm/lib/ExecutionEngine/JIT:
JITEmitter.cpp updated: 1.79 -> 1.80
---
Log message:
rename fields of constant pool entries
---
Diffs of the changes: (+4 -6)
JITEmitter.cpp | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
Index: llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.79 llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.80
--- llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.79 Tue Jan 31 16:21:33 2006
+++ llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp Wed Feb 8 22:22:52 2006
@@ -566,18 +566,16 @@
}
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);
}
}
More information about the llvm-commits
mailing list