diff options
author | Jason Merrill <jason@redhat.com> | 2022-10-20 13:51:37 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-10-24 16:28:03 -0400 |
commit | 244021b6c1a7bdeb777874ddc2ebcecb95610ef1 (patch) | |
tree | c6b4c10a0916da733a3fc55f3bb726d5b7286dc6 /gcc/tree-vectorizer.cc | |
parent | 205538832b7033699047900cf25928f5920d8b93 (diff) | |
download | gcc-244021b6c1a7bdeb777874ddc2ebcecb95610ef1.zip gcc-244021b6c1a7bdeb777874ddc2ebcecb95610ef1.tar.gz gcc-244021b6c1a7bdeb777874ddc2ebcecb95610ef1.tar.bz2 |
tree: add build_string_literal overloads
Simplify several calls to build_string_literal by not requiring redundant
strlen or IDENTIFIER_* in the caller.
I also corrected a wrong comment on IDENTIFIER_LENGTH.
gcc/ChangeLog:
* tree.h (build_string_literal): New one-argument overloads that
take tree (identifier) and const char *.
* builtins.cc (fold_builtin_FILE)
(fold_builtin_FUNCTION)
* gimplify.cc (gimple_add_init_for_auto_var)
* vtable-verify.cc (verify_bb_vtables): Simplify calls.
gcc/cp/ChangeLog:
* cp-gimplify.cc (fold_builtin_source_location)
* vtable-class-hierarchy.cc (register_all_pairs): Simplify calls to
build_string_literal.
(build_string_from_id): Remove.
Diffstat (limited to 'gcc/tree-vectorizer.cc')
0 files changed, 0 insertions, 0 deletions