OrcJIT: Try to appease msc18 to add move constructor in FullyPartitionedModule .

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229492 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2015-02-17 12:52:58 +00:00
parent 77e333fd81
commit 1e095bc3b4

View File

@ -225,10 +225,16 @@ typedef std::map<Module*, DenseSet<const GlobalValue*>> ModulePartitionMap;
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);