diff options
author | Ian Lance Taylor <iant@google.com> | 2011-04-15 04:10:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-04-15 04:10:08 +0000 |
commit | f54d331e46f11ac7b5876a22b30ba52e69985a48 (patch) | |
tree | 7b20c37532b2390ef74bb6aab95ec57585f0de03 /gcc/go/gofrontend/runtime.h | |
parent | 7427a3680f389ece268c056e8bf7b0791f411941 (diff) | |
download | gcc-f54d331e46f11ac7b5876a22b30ba52e69985a48.zip gcc-f54d331e46f11ac7b5876a22b30ba52e69985a48.tar.gz gcc-f54d331e46f11ac7b5876a22b30ba52e69985a48.tar.bz2 |
Use the backend interface for select statements.
From-SVN: r172468
Diffstat (limited to 'gcc/go/gofrontend/runtime.h')
-rw-r--r-- | gcc/go/gofrontend/runtime.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/runtime.h b/gcc/go/gofrontend/runtime.h index d8fb00c..f7c878e 100644 --- a/gcc/go/gofrontend/runtime.h +++ b/gcc/go/gofrontend/runtime.h @@ -30,15 +30,24 @@ class Runtime NUMBER_OF_FUNCTIONS }; + // Make a call to a runtime function. static Call_expression* make_call(Function, source_location, int, ...); + // Convert all the types used by runtime functions to the backend + // representation. static void convert_types(Gogo*); + // Return the type used for iterations over maps. static Type* map_iteration_type(); + // Return the type used to pass a list of general channels to the + // select runtime function. + static Type* + chanptr_type(); + private: static Named_object* runtime_declaration(Function); |