X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=examples%2FKaleidoscope%2FOrc%2Flazy_irgen%2Ftoy.cpp;h=7373c99d543170c6df71b9cef3b7e4e5b3dec143;hb=15e1e7f179e9740321df5cd9af21db5777044d9f;hp=ca34de7e22449044c8c83a827468d12a8a55fece;hpb=87663dbefa6de78c46870d7bf763db9031a3b788;p=oota-llvm.git diff --git a/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp b/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp index ca34de7e224..7373c99d543 100644 --- a/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp +++ b/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp @@ -716,7 +716,7 @@ public: M(new Module(GenerateUniqueName("jit_module_"), Session.getLLVMContext())), Builder(Session.getLLVMContext()) { - M->setDataLayout(*Session.getTarget().getDataLayout()); + M->setDataLayout(Session.getTarget().createDataLayout()); } SessionContext& getSession() { return Session; } @@ -1170,7 +1170,7 @@ public: { raw_string_ostream MangledNameStream(MangledName); Mangler::getNameWithPrefix(MangledNameStream, Name, - *Session.getTarget().getDataLayout()); + Session.getTarget().createDataLayout()); } return MangledName; }