[Orc] Add an emitAndFinalize method to the ObjectLinkingLayer, IRCompileLayer
[oota-llvm.git] / include / llvm / ExecutionEngine / Orc / IRCompileLayer.h
index 873deb67376c2205de7825599b3ac1338a367de7..19f55e9551c2d0f4c86c66bed9a64371aed1abee 100644 (file)
@@ -111,6 +111,13 @@ public:
     return BaseLayer.findSymbolIn(H, Name, ExportedSymbolsOnly);
   }
 
+  /// @brief Immediately emit and finalize the moduleOB set represented by the
+  ///        given handle.
+  /// @param H Handle for module set to emit/finalize.
+  void emitAndFinalize(ModuleSetHandleT H) {
+    BaseLayer.emitAndFinalize(H);
+  }
+
 private:
   object::OwningBinary<object::ObjectFile>
   tryToLoadFromObjectCache(const Module &M) {