diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-12 21:14:35 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-12 21:14:35 +0000 |
commit | de7d4c264a29ffabf6dcf1d899482f36735fa8e7 (patch) | |
tree | 098e05aa9934daea65593e9ff81553e8d085ba54 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | b4c6965da3a74070188f90a73d57bc4bfe9ec72f (diff) | |
download | bcm5719-llvm-de7d4c264a29ffabf6dcf1d899482f36735fa8e7.tar.gz bcm5719-llvm-de7d4c264a29ffabf6dcf1d899482f36735fa8e7.zip |
Patch for synthesizing copy assignment operator.
WIP.
llvm-svn: 78841
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index a642de9a464..22737a4d933 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -653,6 +653,11 @@ llvm::Constant *CodeGenModule::GetOrCreateLLVMFunction(const char *MangledName, else if (!ClassDecl->hasUserDeclaredConstructor()) DeferredDeclsToEmit.push_back(D); } + else + if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) + if (MD->isCopyAssignment()) { + DeferredDeclsToEmit.push_back(D); + } } // This function doesn't have a complete type (for example, the return |