[llvm-commits] [dragonegg] r135876 - /dragonegg/trunk/src/Types.cpp
Duncan Sands
baldrick at free.fr
Sun Jul 24 08:49:15 PDT 2011
Author: baldrick
Date: Sun Jul 24 10:49:15 2011
New Revision: 135876
URL: http://llvm.org/viewvc/llvm-project?rev=135876&view=rev
Log:
Port commit 134711 (lattner) from llvm-gcc. Original changelog entry:
eliminate a dead function.
Modified:
dragonegg/trunk/src/Types.cpp
Modified: dragonegg/trunk/src/Types.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Types.cpp?rev=135876&r1=135875&r2=135876&view=diff
==============================================================================
--- dragonegg/trunk/src/Types.cpp (original)
+++ dragonegg/trunk/src/Types.cpp Sun Jul 24 10:49:15 2011
@@ -222,17 +222,6 @@
return false;
}
-/// 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) {
- Type *NewTy = ConvertType (new_type);
- const_cast<OpaqueType*>(OldTy)->refineAbstractTypeTo(NewTy);
- }
-}
-
//===----------------------------------------------------------------------===//
// Abstract Type Refinement Helpers
More information about the llvm-commits
mailing list