X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=examples%2FKaleidoscope%2FOrc%2Ffully_lazy%2Ftoy.cpp;h=56123bb41e3612a3c956dc277229200e4c36650c;hp=475d4eba62276ae45652146f0cf0cbedb5fd038f;hb=88b2e585f3d03ba34bee8bb97d26d3ec85749be1;hpb=766caabcf1d9078d52f67fabf41b08b5c3876792;ds=sidebyside diff --git a/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp b/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp index 475d4eba622..56123bb41e3 100644 --- a/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp +++ b/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp @@ -686,7 +686,6 @@ public: LLVMContext& getLLVMContext() const { return Context; } void addPrototypeAST(std::unique_ptr P); PrototypeAST* getPrototypeAST(const std::string &Name); - std::map> FunctionDefs; private: typedef std::map> PrototypeMap; LLVMContext &Context; @@ -1238,7 +1237,7 @@ private: auto H = irGenStub(std::move(DefI->second)); // Remove the map entry now that we're done with it. - Session.FunctionDefs.erase(DefI); + FunctionDefs.erase(DefI); // Return the address of the stub. return findMangledSymbolIn(H, Name).getAddress();