method.c (use_thunk): Use DECL_NAME instead of DECL_RTL to access function name.
authorDan Hipschman <dsh@google.com>
Mon, 6 Aug 2007 22:02:56 +0000 (15:02 -0700)
committerDan Hipschman <dsh@gcc.gnu.org>
Mon, 6 Aug 2007 22:02:56 +0000 (15:02 -0700)
2007-08-06  Dan Hipschman  <dsh@google.com>

        * method.c (use_thunk): Use DECL_NAME instead of DECL_RTL to
        access function name.

From-SVN: r127255

gcc/cp/ChangeLog
gcc/cp/method.c

index eef4d12066e17b5ef4dc43bebb12e08d09a653dc..e65638296327dcf12724665357e64c853f901dc0 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-06  Dan Hipschman  <dsh@google.com>
+
+       * method.c (use_thunk): Use DECL_NAME instead of DECL_RTL to
+       access function name.
+
 2007-08-04  Alfred Minarik  <a.minarik@aon.at>
 
        PR pch/13676
index 32cf5862928aac53f7fcef00a2aead3ce9ed379c..f4b43a2285dbe37b61cd4037c93efd3d23eee3f2 100644 (file)
@@ -430,7 +430,7 @@ use_thunk (tree thunk_fndecl, bool emit_p)
       current_function_decl = thunk_fndecl;
       DECL_RESULT (thunk_fndecl)
        = build_decl (RESULT_DECL, 0, integer_type_node);
-      fnname = XSTR (XEXP (DECL_RTL (thunk_fndecl), 0), 0);
+      fnname = IDENTIFIER_POINTER (DECL_NAME (thunk_fndecl));
       /* The back end expects DECL_INITIAL to contain a BLOCK, so we
         create one.  */
       fn_block = make_node (BLOCK);