]> granicus.if.org Git - clang/commit
Use aliases for more constructors and destructors.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 9 Oct 2013 16:13:15 +0000 (16:13 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 9 Oct 2013 16:13:15 +0000 (16:13 +0000)
commit5720858b1b0dec103022ef1c6c39eacf9be0435f
treeddea162a57c891b1073bd987674af329049014be
parentb71aa7af7f4f9140c7bbcccca30aeecc671d767f
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>;

It is safe to use aliases to weak symbols, as long and the alias itself is also
weak.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192300 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCXX.cpp
test/CodeGenCXX/destructors.cpp