darwin.c (machopic_mcount_stub_name): Call machopic_indirection_name instead of making the string ourselves.

2004-09-10  Andrew Pinski  <apinski@apple.com>

        * config/darwin.c (machopic_mcount_stub_name): Call
        machopic_indirection_name instead of making the string
        ourselves.

From-SVN: r87309
This commit is contained in:
Andrew Pinski 2004-09-10 17:26:54 +00:00 committed by Andrew Pinski
parent e30b0ae2fa
commit 76f60aa59c
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2004-09-10 Andrew Pinski <apinski@apple.com>
* config/darwin.c (machopic_mcount_stub_name): Call
machopic_indirection_name instead of making the string
ourselves.
2004-09-10 Diego Novillo <dnovillo@redhat.com>
Revert

View file

@ -361,7 +361,8 @@ machopic_indirection_name (rtx sym_ref, bool stub_p)
const char*
machopic_mcount_stub_name (void)
{
return "&L*mcount$stub";
rtx symbol = gen_rtx_SYMBOL_REF (Pmode, "*mcount");
return machopic_indirection_name (symbol, /*stub_p=*/true);
}
/* If NAME is the name of a stub or a non-lazy pointer , mark the stub