diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-04 18:38:59 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-04 18:38:59 +0000 |
commit | 3f643bd1248b77f5e87af2f7ee5e4f0881729e93 (patch) | |
tree | fdbd27dae71ba4270064ab2520256ec33c185150 /clang/lib/CodeGen/CodeGenModule.h | |
parent | a6775b622f45ff0693133e2fdc685eea6a147abe (diff) | |
download | bcm5719-llvm-3f643bd1248b77f5e87af2f7ee5e4f0881729e93.tar.gz bcm5719-llvm-3f643bd1248b77f5e87af2f7ee5e4f0881729e93.zip |
Use aliases for more constructors and destructors.
With this patch we produce alias for cases like
template<typename T>
struct foobar {
foobar() {
}
};
template struct foobar<void>;
We just have to be careful to produce the same aliases in every TU because
of comdats.
llvm-svn: 194000
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 25aaae61e48..249ad331759 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1034,7 +1034,8 @@ private: // C++ related functions. - bool TryEmitDefinitionAsAlias(GlobalDecl Alias, GlobalDecl Target); + bool TryEmitDefinitionAsAlias(GlobalDecl Alias, GlobalDecl Target, + bool InEveryTU); bool TryEmitBaseDestructorAsAlias(const CXXDestructorDecl *D); void EmitNamespace(const NamespaceDecl *D); |