[llvm-commits] [llvm-gcc-4.2] r134711 - in /llvm-gcc-4.2/trunk/gcc: llvm-types.cpp llvm.h
Chris Lattner
sabre at nondot.org
Fri Jul 8 11:13:39 PDT 2011
Author: lattner
Date: Fri Jul 8 13:13:39 2011
New Revision: 134711
URL: http://llvm.org/viewvc/llvm-project?rev=134711&view=rev
Log:
eliminate a dead function.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
llvm-gcc-4.2/trunk/gcc/llvm.h
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=134711&r1=134710&r2=134711&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Fri Jul 8 13:13:39 2011
@@ -311,18 +311,6 @@
DECL_BIT_FIELD_TYPE(field_decl) : TREE_TYPE (field_decl);
}
-/// refine_type_to - Cause all users of the opaque type old_type to switch
-/// to the more concrete type new_type.
-void refine_type_to(tree old_type, tree new_type)
-{
- const OpaqueType *OldTy = cast_or_null<OpaqueType>(GET_TYPE_LLVM(old_type));
- if (OldTy) {
- const Type *NewTy = ConvertType (new_type);
- const_cast<OpaqueType*>(OldTy)->refineAbstractTypeTo(NewTy);
- }
-}
-
-
//===----------------------------------------------------------------------===//
// Abstract Type Refinement Helpers
//===----------------------------------------------------------------------===//
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=134711&r1=134710&r2=134711&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm.h (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm.h Fri Jul 8 13:13:39 2011
@@ -115,10 +115,6 @@
/* llvm_call_llvm_shutdown - Release LLVM global state. */
void llvm_call_llvm_shutdown(void);
-/* refine_type_to - Cause all users of the opaque type old_type to switch
- * to the more concrete type new_type.
- */
-void refine_type_to (union tree_node*, union tree_node*);
#endif /* ENABLE_LLVM */
#endif
More information about the llvm-commits
mailing list