GCC Middle and Back End API Reference
tree-logical-location.h
Go to the documentation of this file.
1/* Subclasses of logical_location with knowledge of "tree".
2 Copyright (C) 2022-2024 Free Software Foundation, Inc.
3 Contributed by David Malcolm <dmalcolm@redhat.com>.
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 3, or (at your option) any later
10version.
11
12GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or
14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15for more details.
16
17You should have received a copy of the GNU General Public License
18along with GCC; see the file COPYING3. If not see
19<http://www.gnu.org/licenses/>. */
20
21#ifndef GCC_TREE_LOGICAL_LOCATION_H
22#define GCC_TREE_LOGICAL_LOCATION_H
23
24#include "logical-location.h"
25
26/* Abstract subclass of logical_location, with knowledge of "tree", but
27 for no specific tree. */
28
30{
31 protected:
32 static const char *get_short_name_for_tree (tree);
33 static const char *get_name_with_scope_for_tree (tree);
34 static const char *get_internal_name_for_tree (tree);
36};
37
38/* Concrete subclass of logical_location, with reference to a specific
39 tree. */
40
54
55/* Concrete subclass of logical_location, with reference to
56 current_function_decl. */
57
59{
60public:
61 const char *get_short_name () const final override;
62 const char *get_name_with_scope () const final override;
63 const char *get_internal_name () const final override;
64 enum logical_location_kind get_kind () const final override;
65};
66
67#endif /* GCC_TREE_LOGICAL_LOCATION_H. */
Definition tree-logical-location.h:30
static const char * get_name_with_scope_for_tree(tree)
Definition tree-logical-location.cc:45
static enum logical_location_kind get_kind_for_tree(tree)
Definition tree-logical-location.cc:67
static const char * get_short_name_for_tree(tree)
Definition tree-logical-location.cc:35
static const char * get_internal_name_for_tree(tree)
Definition tree-logical-location.cc:55
Definition tree-logical-location.h:59
Definition logical-location.h:52
Definition tree-logical-location.h:42
const char * get_name_with_scope() const final override
Definition tree-logical-location.cc:97
const char * get_short_name() const final override
Definition tree-logical-location.cc:90
tree_logical_location(tree decl)
Definition tree-logical-location.h:44
const char * get_internal_name() const final override
Definition tree-logical-location.cc:104
tree m_decl
Definition tree-logical-location.h:52
enum logical_location_kind get_kind() const final override
Definition tree-logical-location.cc:111
union tree_node * tree
Definition coretypes.h:97
void final(rtx_insn *first, FILE *file, int optimize_p)
Definition final.cc:2002
T * ggc_alloc(ALONE_CXX_MEM_STAT_INFO)
Definition ggc.h:184
logical_location_kind
Definition logical-location.h:31
Definition genautomata.cc:499