diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-03-10 00:54:01 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-03-10 00:54:01 +0000 |
commit | 97d7be526b53db571a7fabd05914b4516d6ebc8f (patch) | |
tree | d1293119f8e5cad4a0d019c2cbc3a36b79a3d484 /llvm | |
parent | 223a1131d819c09be810dc71c6cbdf98cea0b876 (diff) | |
download | bcm5719-llvm-97d7be526b53db571a7fabd05914b4516d6ebc8f.tar.gz bcm5719-llvm-97d7be526b53db571a7fabd05914b4516d6ebc8f.zip |
[PM] Add a comment I missed and add the special members to one more
class that might (at some point) need them.
llvm-svn: 203428
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/IR/PassManager.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/PassManager.h b/llvm/include/llvm/IR/PassManager.h index d90db7bf406..e16524577f9 100644 --- a/llvm/include/llvm/IR/PassManager.h +++ b/llvm/include/llvm/IR/PassManager.h @@ -788,6 +788,8 @@ public: explicit FunctionAnalysisManagerModuleProxy(FunctionAnalysisManager &FAM) : FAM(FAM) {} + // We have to explicitly define all the special member functions because MSVC + // refuses to generate them. FunctionAnalysisManagerModuleProxy( const FunctionAnalysisManagerModuleProxy &Arg) : FAM(Arg.FAM) {} @@ -892,6 +894,18 @@ public: ModuleAnalysisManagerFunctionProxy(const ModuleAnalysisManager &MAM) : MAM(MAM) {} + // We have to explicitly define all the special member functions because MSVC + // refuses to generate them. + ModuleAnalysisManagerFunctionProxy( + const ModuleAnalysisManagerFunctionProxy &Arg) + : MAM(Arg.MAM) {} + ModuleAnalysisManagerFunctionProxy(ModuleAnalysisManagerFunctionProxy &&Arg) + : MAM(Arg.MAM) {} + ModuleAnalysisManagerFunctionProxy & + operator=(ModuleAnalysisManagerFunctionProxy RHS) { + std::swap(*this, RHS); + return *this; + } /// \brief Run the analysis pass and create our proxy result object. /// Nothing to see here, it just forwards the \c MAM reference into the |