aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/runtime.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2016-04-23 04:58:00 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2016-04-23 04:58:00 +0000
commit0e94da57dc1e5712c60a876545a0c09a4d672002 (patch)
tree2cfb99ced2bf497d3daed25f022fed99a6e01693 /gcc/go/gofrontend/runtime.h
parent216f7526fef4db4a7f6510f4d48827bb4c55fc64 (diff)
downloadgcc-0e94da57dc1e5712c60a876545a0c09a4d672002.zip
gcc-0e94da57dc1e5712c60a876545a0c09a4d672002.tar.gz
gcc-0e94da57dc1e5712c60a876545a0c09a4d672002.tar.bz2
compiler: Expose runtime code through Func_expression.
Enables us to easily check if a Call_expression is a call to a runtime function and, if so, which runtime function is corresponds to. This will be used during escape analysis. Reviewed-on: https://go-review.googlesource.com/18544 From-SVN: r235383
Diffstat (limited to 'gcc/go/gofrontend/runtime.h')
-rw-r--r--gcc/go/gofrontend/runtime.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/runtime.h b/gcc/go/gofrontend/runtime.h
index be5dcbe..636e196 100644
--- a/gcc/go/gofrontend/runtime.h
+++ b/gcc/go/gofrontend/runtime.h
@@ -43,6 +43,10 @@ class Runtime
static Type*
map_iteration_type();
+ // Return the runtime code for a named builtin function.
+ static Function
+ name_to_code(const std::string&);
+
private:
static Named_object*
runtime_declaration(Function);