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 | 71fdc127d21bb138b4bbc2b2ce1db460715271f1 (patch) | |
| tree | 1404e546c2fc5f23f6e00ac875be8f4a93312d3b /lib/CodeGen/CodeGenModule.h | |
| parent | f632a0c29d4a124119312ef2bb36c1c8b49b0b93 (diff) | |
| download | clang-71fdc127d21bb138b4bbc2b2ce1db460715271f1.tar.gz clang-71fdc127d21bb138b4bbc2b2ce1db460715271f1.tar.bz2 clang-71fdc127d21bb138b4bbc2b2ce1db460715271f1.tar.xz | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
| -rw-r--r-- | lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 25aaae61e4..249ad33175 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/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); |
