X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=examples%2FKaleidoscope%2FOrc%2Flazy_irgen%2Ftoy.cpp;h=ca34de7e22449044c8c83a827468d12a8a55fece;hb=26be2142324893e254ec9ba91da3a54694936498;hp=7373c99d543170c6df71b9cef3b7e4e5b3dec143;hpb=90908cb34d73460d3aa83e2194a58d82c6d1f199;p=oota-llvm.git diff --git a/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp b/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp index 7373c99d543..ca34de7e224 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().createDataLayout()); + M->setDataLayout(*Session.getTarget().getDataLayout()); } SessionContext& getSession() { return Session; } @@ -1170,7 +1170,7 @@ public: { raw_string_ostream MangledNameStream(MangledName); Mangler::getNameWithPrefix(MangledNameStream, Name, - Session.getTarget().createDataLayout()); + *Session.getTarget().getDataLayout()); } return MangledName; }