[llvm] r229492 - OrcJIT: Try to appease msc18 to add move constructor in FullyPartitionedModule .

NAKAMURA Takumi geek4civic at gmail.com
Tue Feb 17 04:52:58 PST 2015


Author: chapuni
Date: Tue Feb 17 06:52:58 2015
New Revision: 229492

URL: http://llvm.org/viewvc/llvm-project?rev=229492&view=rev
Log:
OrcJIT: Try to appease msc18 to add move constructor in FullyPartitionedModule .

Modified:
    llvm/trunk/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h

Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h?rev=229492&r1=229491&r2=229492&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h Tue Feb 17 06:52:58 2015
@@ -225,10 +225,16 @@ typedef std::map<Module*, DenseSet<const
 void partition(Module &M, const ModulePartitionMap &PMap);
 
 /// @brief Struct for trivial "complete" partitioning of a module.
-struct FullyPartitionedModule {
+class FullyPartitionedModule {
+public:
   std::unique_ptr<Module> GlobalVars;
   std::unique_ptr<Module> Commons;
   std::vector<std::unique_ptr<Module>> Functions;
+
+  FullyPartitionedModule() = default;
+  FullyPartitionedModule(FullyPartitionedModule &&S)
+      : GlobalVars(std::move(S.GlobalVars)), Commons(std::move(S.Commons)),
+        Functions(std::move(S.Functions)) {}
 };
 
 FullyPartitionedModule fullyPartition(Module &M);





More information about the llvm-commits mailing list