public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Remove an RTL usage in the C++ front end
@ 2007-07-13  3:43 Dan Hipschman
  2007-07-13  3:45 ` Laurynas Biveinis
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Hipschman @ 2007-07-13  3:43 UTC (permalink / raw)
  To: gcc-patches


This patch gets rid of one usage of RTL in the C++ front end.


2007-06-12  Dan Hipschman  <dsh@google.com>

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

Index: cp/method.c
===================================================================
--- cp/method.c (revision 126593)
+++ cp/method.c (working copy)
@@ -430,7 +430,7 @@ use_thunk (tree thunk_fndecl, bool emit_
       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 = get_name (thunk_fndecl);
       /* The back end expects DECL_INITIAL to contain a BLOCK, so we
         create one.  */
       fn_block = make_node (BLOCK);

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-06 22:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-13  3:43 Remove an RTL usage in the C++ front end Dan Hipschman
2007-07-13  3:45 ` Laurynas Biveinis
2007-07-13  5:52   ` Dan Hipschman
2007-08-06  3:34     ` Mark Mitchell
2007-08-06 22:10       ` Dan Hipschman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).