[Orc][Kaleidoscope] Remove dead AST map in SessionContext.
[oota-llvm.git] / examples / Kaleidoscope / Orc / fully_lazy / toy.cpp
index 475d4eba62276ae45652146f0cf0cbedb5fd038f..56123bb41e3612a3c956dc277229200e4c36650c 100644 (file)
@@ -686,7 +686,6 @@ public:
   LLVMContext& getLLVMContext() const { return Context; }
   void addPrototypeAST(std::unique_ptr<PrototypeAST> P);
   PrototypeAST* getPrototypeAST(const std::string &Name);
   LLVMContext& getLLVMContext() const { return Context; }
   void addPrototypeAST(std::unique_ptr<PrototypeAST> P);
   PrototypeAST* getPrototypeAST(const std::string &Name);
-  std::map<std::string, std::unique_ptr<FunctionAST>> FunctionDefs; 
 private:
   typedef std::map<std::string, std::unique_ptr<PrototypeAST>> PrototypeMap;
   LLVMContext &Context;
 private:
   typedef std::map<std::string, std::unique_ptr<PrototypeAST>> 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.
     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();
 
     // Return the address of the stub.
     return findMangledSymbolIn(H, Name).getAddress();