[llvm-commits] [llvm-gcc-4.2] r52845 - in /llvm-gcc-4.2/trunk/gcc: llvm-types.cpp llvm.h objc/objc-act.c
Dale Johannesen
dalej at apple.com
Fri Jun 27 15:29:47 PDT 2008
Author: johannes
Date: Fri Jun 27 17:29:47 2008
New Revision: 52845
URL: http://llvm.org/viewvc/llvm-project?rev=52845&view=rev
Log:
Remove some dead code (fully reverts 50276).
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
llvm-gcc-4.2/trunk/gcc/llvm.h
llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-types.cpp?rev=52845&r1=52844&r2=52845&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Fri Jun 27 17:29:47 2008
@@ -46,10 +46,6 @@
}
#include "llvm-abi.h"
-void llvm_compute_type(tree X) {
- ConvertType(X);
-}
-
//===----------------------------------------------------------------------===//
// Matching LLVM types with GCC trees
//===----------------------------------------------------------------------===//
Modified: llvm-gcc-4.2/trunk/gcc/llvm.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm.h?rev=52845&r1=52844&r2=52845&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm.h (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm.h Fri Jun 27 17:29:47 2008
@@ -49,12 +49,6 @@
*/
void reset_type_and_initializer_llvm(union tree_node*);
-/* llvm_compute_type - Compute the LLVM type for the specified tree type eagerly
- * instead of letting it happen lazily.
- */
-void llvm_compute_type(union tree_node*);
-
-
/* reset_initializer_llvm - Change the initializer for a global variable. */
void reset_initializer_llvm(union tree_node*);
Modified: llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/objc/objc-act.c?rev=52845&r1=52844&r2=52845&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.2/trunk/gcc/objc/objc-act.c Fri Jun 27 17:29:47 2008
@@ -8633,22 +8633,6 @@
/* APPLE LOCAL begin ObjC new abi */
if (flag_objc_abi == 2)
CLASS_TYPE (class) = record;
-
- /* APPLE LOCAL llvm begin */
-#if 0
-#ifdef ENABLE_LLVM
- /* Synthesized properties will later be added to this RECORD_DECL as they
- * are found in @implementations. We don't want the LLVM tree->llvm
- * converter to see these newly added properties, so we emulate the RTL
- * backend and analyze the type eagerly in this case. It would be better
- * for the ObjC front-end to not add these properties to the RECORD_DECL
- * but that would be a large/invasive change. rdar://5812818
- */
- if (flag_objc_abi == 2)
- llvm_compute_type(record);
-#endif
-#endif
- /* APPLE LOCAL llvm end */
}
}
/* APPLE LOCAL end ObjC new abi */
More information about the llvm-commits
mailing list