aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.h
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2019-03-28 14:40:56 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2019-03-28 14:40:56 +0000
commit12b9247b19b8b634ec467ba8a3f506a4e7b76711 (patch)
treedc36cb802fc35ebe41ae2a4b02a98cc678ef4bfb /gcc/tree-inline.h
parentcdd82c1ee8d2ae036a4bfe2170b7795c17394109 (diff)
downloadgcc-12b9247b19b8b634ec467ba8a3f506a4e7b76711.zip
gcc-12b9247b19b8b634ec467ba8a3f506a4e7b76711.tar.gz
gcc-12b9247b19b8b634ec467ba8a3f506a4e7b76711.tar.bz2
optinfo-emit-json.cc: don't call get_fnname_from_decl (PR middle-end/89725)
optrecord_json_writer::optinfo_to_json can in theory be called from any optimization pass, but currently uses get_fnname_from_decl, which is RTL-specific. In that PR, Jakub suggested using either DECL_ASSEMBLER_NAME or the "printable name" (via current_function_name). This patch makes it use DECL_ASSEMBLER_NAME. gcc/ChangeLog: PR middle-end/89725 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json): Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl. From-SVN: r269994
Diffstat (limited to 'gcc/tree-inline.h')
0 files changed, 0 insertions, 0 deletions