[llvm] r230201 - [Orc][Kaleidoscope] Remove dead AST map in SessionContext.
Lang Hames
lhames at gmail.com
Sun Feb 22 20:34:43 PST 2015
Author: lhames
Date: Sun Feb 22 22:34:43 2015
New Revision: 230201
URL: http://llvm.org/viewvc/llvm-project?rev=230201&view=rev
Log:
[Orc][Kaleidoscope] Remove dead AST map in SessionContext.
Modified:
llvm/trunk/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp
Modified: llvm/trunk/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp?rev=230201&r1=230200&r2=230201&view=diff
==============================================================================
--- llvm/trunk/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp (original)
+++ llvm/trunk/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp Sun Feb 22 22:34:43 2015
@@ -686,7 +686,6 @@ public:
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;
@@ -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();
More information about the llvm-commits
mailing list