MCJIT initialization TargetData

llvm-svn: 140856
This commit is contained in:
Danil Malyshev 2011-09-30 16:40:10 +00:00
parent ea3f90ae40
commit 64b1aad4e3
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ MCJIT::MCJIT(Module *m, TargetMachine *tm, TargetJITInfo &tji,
bool AllocateGVsWithCode)
: ExecutionEngine(m), TM(tm), MemMgr(MM), M(m), OS(Buffer), Dyld(MM) {
setTargetData(TM->getTargetData());
PM.add(new TargetData(*TM->getTargetData()));
// Turn the machine code intermediate representation into bytes in memory