mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
[Orc][Kaleidoscope] Remove dead AST map in SessionContext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230201 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
766caabcf1
commit
88b2e585f3
@ -686,7 +686,6 @@ public:
|
|||||||
LLVMContext& getLLVMContext() const { return Context; }
|
LLVMContext& getLLVMContext() const { return Context; }
|
||||||
void addPrototypeAST(std::unique_ptr<PrototypeAST> P);
|
void addPrototypeAST(std::unique_ptr<PrototypeAST> P);
|
||||||
PrototypeAST* getPrototypeAST(const std::string &Name);
|
PrototypeAST* getPrototypeAST(const std::string &Name);
|
||||||
std::map<std::string, std::unique_ptr<FunctionAST>> FunctionDefs;
|
|
||||||
private:
|
private:
|
||||||
typedef std::map<std::string, std::unique_ptr<PrototypeAST>> PrototypeMap;
|
typedef std::map<std::string, std::unique_ptr<PrototypeAST>> PrototypeMap;
|
||||||
LLVMContext &Context;
|
LLVMContext &Context;
|
||||||
@ -1238,7 +1237,7 @@ private:
|
|||||||
auto H = irGenStub(std::move(DefI->second));
|
auto H = irGenStub(std::move(DefI->second));
|
||||||
|
|
||||||
// Remove the map entry now that we're done with it.
|
// 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 the address of the stub.
|
||||||
return findMangledSymbolIn(H, Name).getAddress();
|
return findMangledSymbolIn(H, Name).getAddress();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user