aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/statements.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-08-25 23:14:20 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-08-25 23:14:20 +0000
commit48ab8ba6b82ce10cb5f726d2ae95d4b4b857ba9c (patch)
treef2687d565e5bf329a4cdc9c5a8665365460a026e /gcc/go/gofrontend/statements.h
parent2e335040bcd1fddb5a775d537092c5a3b783263e (diff)
downloadgcc-48ab8ba6b82ce10cb5f726d2ae95d4b4b857ba9c.zip
gcc-48ab8ba6b82ce10cb5f726d2ae95d4b4b857ba9c.tar.gz
gcc-48ab8ba6b82ce10cb5f726d2ae95d4b4b857ba9c.tar.bz2
Change Bound_method_expression to refer to a constant method.
From-SVN: r178091
Diffstat (limited to 'gcc/go/gofrontend/statements.h')
-rw-r--r--gcc/go/gofrontend/statements.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/gcc/go/gofrontend/statements.h b/gcc/go/gofrontend/statements.h
index 8b5263b..0a87a8b 100644
--- a/gcc/go/gofrontend/statements.h
+++ b/gcc/go/gofrontend/statements.h
@@ -906,21 +906,17 @@ class Thunk_statement : public Statement
bool
is_simple(Function_type*) const;
+ // Return whether the thunk function is a constant.
+ bool
+ is_constant_function() const;
+
// Build the struct to use for a complex case.
Struct_type*
build_struct(Function_type* fntype);
// Build the thunk.
void
- build_thunk(Gogo*, const std::string&, Function_type* fntype);
-
- // The field name used in the thunk structure for the function
- // pointer.
- static const char* const thunk_field_fn;
-
- // The field name used in the thunk structure for the receiver, if
- // there is one.
- static const char* const thunk_field_receiver;
+ build_thunk(Gogo*, const std::string&);
// Set the name to use for thunk field N.
void