[cfe-commits] r127806 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Douglas Gregor dgregor at apple.com
Fri Mar 18 07:15:45 PDT 2011


Bill, please merge this to the 2.9 release branch.

	Thanks!
	- Doug

On Mar 17, 2011, at 7:19 AM, David Chisnall wrote:

> Author: theraven
> Date: Thu Mar 17 09:19:08 2011
> New Revision: 127806
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=127806&view=rev
> Log:
> Remove code that was intentionally generating bad code on the GNU runtime for no reason (failing to emit .cxx_constructor / .cxx_destructor methods).
> 
> 
> Modified:
>    cfe/trunk/lib/CodeGen/CodeGenModule.cpp
> 
> Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=127806&r1=127805&r2=127806&view=diff
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Thu Mar 17 09:19:08 2011
> @@ -1934,7 +1934,7 @@
> /// EmitObjCIvarInitializations - Emit information for ivar initialization
> /// for an implementation.
> void CodeGenModule::EmitObjCIvarInitializations(ObjCImplementationDecl *D) {
> -  if (!Features.NeXTRuntime || D->getNumIvarInitializers() == 0)
> +  if (D->getNumIvarInitializers() == 0)
>     return;
>   DeclContext* DC = const_cast<DeclContext*>(dyn_cast<DeclContext>(D));
>   assert(DC && "EmitObjCIvarInitializations - null DeclContext");
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list