[Orc] Remove the 'takeOwnershipOfBuffers' kludge.
[oota-llvm.git] / include / llvm / ExecutionEngine / Orc / IRCompileLayer.h
index 6275a00cd6784da37239b406813242c09d3e9d23..e4bed95fdabf6ee239b69cc54c4b0546aaf679b1 100644 (file)
@@ -52,9 +52,9 @@ public:
   /// @brief Set an ObjectCache to query before compiling.
   void setObjectCache(ObjectCache *NewCache) { ObjCache = NewCache; }
 
-  /// @brief Compile each module in the given module set, then then add the
-  ///        resulting set of objects to the base layer along with the memory
-  ///        manager and symbol resolver.
+  /// @brief Compile each module in the given module set, then add the resulting
+  ///        set of objects to the base layer along with the memory manager and
+  ///        symbol resolver.
   ///
   /// @return A handle for the added modules.
   template <typename ModuleSetT, typename MemoryManagerPtrT,
@@ -85,8 +85,6 @@ public:
     ModuleSetHandleT H =
       BaseLayer.addObjectSet(Objects, std::move(MemMgr), std::move(Resolver));
 
-    BaseLayer.takeOwnershipOfBuffers(H, std::move(Buffers));
-
     return H;
   }