mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
77e333fd81
commit
1e095bc3b4
@ -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