summaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/escape.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go/gofrontend/escape.h')
-rw-r--r--gcc/go/gofrontend/escape.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/escape.h b/gcc/go/gofrontend/escape.h
index 2278c473007..e6d1a3d6e1a 100644
--- a/gcc/go/gofrontend/escape.h
+++ b/gcc/go/gofrontend/escape.h
@@ -193,6 +193,17 @@ class Node
Location
location() const;
+ // Return this node's AST formatted string.
+ std::string
+ ast_format(Gogo*) const;
+
+ // Return this node's detailed format string.
+ std::string
+ details() const;
+
+ std::string
+ op_format() const;
+
// Return this node's escape state.
Escape_state*
state(Escape_context* context, Named_object* fn);
@@ -343,6 +354,10 @@ class Escape_context
set_current_function(Named_object* fn)
{ this->current_function_ = fn; }
+ // Return the name of the current function.
+ std::string
+ current_function_name() const;
+
// Return true if this is the context for a mutually recursive set of functions.
bool
recursive() const