summaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/runtime.h
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-15 04:10:08 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-15 04:10:08 +0000
commitde0e0814318021b05ef36109c0ccae41571f1478 (patch)
tree7b20c37532b2390ef74bb6aab95ec57585f0de03 /gcc/go/gofrontend/runtime.h
parent219110b4d6e43dcdbc9e55ffa3ee3ca9bc06a84a (diff)
downloadgcc-de0e0814318021b05ef36109c0ccae41571f1478.tar.gz
Use the backend interface for select statements.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172468 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go/gofrontend/runtime.h')
-rw-r--r--gcc/go/gofrontend/runtime.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/runtime.h b/gcc/go/gofrontend/runtime.h
index d8fb00c2725..f7c878e73b9 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);