]> granicus.if.org Git - clang/commit
Handle constructors and destructors a bit more uniformly in CodeGen.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 8 Sep 2014 16:01:27 +0000 (16:01 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 8 Sep 2014 16:01:27 +0000 (16:01 +0000)
commit422fddba7838e6d7aefe1c4bdfa2d3830c71ed5c
treea2a10e3910f6ef808eb37b64a2f86f5e7fc224e9
parent18cb1a90887a119f3d3867bf39dc6b2d01c9df4b
Handle constructors and destructors a bit more uniformly in CodeGen.

There were code paths that are duplicated for constructors and destructors just
because we have both CXXCtorType and CXXDtorsTypes.

This patch introduces an unified enum and reduces code deplication a bit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217383 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCXX.cpp
lib/CodeGen/CGCXXABI.h
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGClass.cpp
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/CodeGenModule.h
lib/CodeGen/CodeGenTypes.h
lib/CodeGen/ItaniumCXXABI.cpp
lib/CodeGen/MicrosoftCXXABI.cpp