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

David Chisnall csdavec at swan.ac.uk
Thu Mar 17 07:19:08 PDT 2011


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");





More information about the cfe-commits mailing list