mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
OrcJIT: Try to appease msc18 to add move constructor in FullyPartitionedModule .
llvm-svn: 229492
This commit is contained in:
parent
d758fc017a
commit
fa94088102
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user