mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
-Wdeprecated-clean: Fix cases of violating the rule of 5 in ways that are deprecated in C++11
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
caf175c28c
commit
b4b38d65e6
@ -28,6 +28,10 @@ private:
|
||||
typedef std::vector<BaseLayerModuleSetHandleT> BaseLayerHandleList;
|
||||
|
||||
struct LogicalModule {
|
||||
// Make this move-only to ensure they don't get duplicated across moves of
|
||||
// LogicalDylib or anything like that.
|
||||
LogicalModule(LogicalModule&&) = default;
|
||||
LogicalModule() = default;
|
||||
LogicalModuleResources Resources;
|
||||
BaseLayerHandleList BaseLayerHandles;
|
||||
};
|
||||
@ -46,6 +50,10 @@ public:
|
||||
BaseLayer.removeModuleSet(BLH);
|
||||
}
|
||||
|
||||
// If possible, remove this and ~LogicalDylib once the work in the dtor is
|
||||
// moved to members (eg: self-unregistering base layer handles).
|
||||
LogicalDylib(LogicalDylib&& RHS) = default;
|
||||
|
||||
LogicalModuleHandle createLogicalModule() {
|
||||
LogicalModules.push_back(LogicalModule());
|
||||
return std::prev(LogicalModules.end());
|
||||
|
Loading…
x
Reference in New Issue
Block a user