From 3da6d2d1fc59306814018a9fbfe3df9f737f6b59 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Fri, 12 Nov 2021 16:20:22 +0000 Subject: [PATCH] Fix the lookup process on the new jit --- include/serene/jit/engine.h | 3 +++ include/serene/jit/layers.h | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/serene/jit/engine.h b/include/serene/jit/engine.h index 07c74b1..4814ab6 100644 --- a/include/serene/jit/engine.h +++ b/include/serene/jit/engine.h @@ -102,6 +102,9 @@ class SereneJIT { serene::SereneContext &ctx; + /// The name of the NS which we are in it at the moment. + std::string inNS; + static llvm::Expected optimizeModule(orc::ThreadSafeModule tsm, const orc::MaterializationResponsibility &r) { diff --git a/include/serene/jit/layers.h b/include/serene/jit/layers.h index b15863a..a159f08 100644 --- a/include/serene/jit/layers.h +++ b/include/serene/jit/layers.h @@ -79,13 +79,14 @@ private: }; // class SereneAstLayer { -// serene::SereneContexe &ctx; +// SereneContext &ctx; // orc::IRLayer &baseLayer; // orc::MangleAndInterner &mangler; + // const llvm::DataLayout &dl; // public: -// SereneAstLayer(serene::SereneContexe &ctx, orc::IRLayer &baseLayer, +// SereneAstLayer(SereneContext &ctx, orc::IRLayer &baseLayer, // orc::MangleAndInterner &mangler, const llvm::DataLayout &dl) // : ctx(ctx), baseLayer(baseLayer), mangler(mangler), dl(dl){};