aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-resolve-path.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-08-20 16:15:23 +0100
committerPhilip Herron <philip.herron@embecosm.com>2021-08-22 14:56:27 +0100
commit79092784f20b99f26da847d2b921d3ea1ffc1a24 (patch)
tree0748faa44dcc18f1f19683c0cdf5815ce70e5c48 /gcc/rust/backend/rust-compile-resolve-path.h
parenta6c8bd136dd4e89752eaec6415ba651f3cd73b9e (diff)
downloadgcc-79092784f20b99f26da847d2b921d3ea1ffc1a24.zip
gcc-79092784f20b99f26da847d2b921d3ea1ffc1a24.tar.gz
gcc-79092784f20b99f26da847d2b921d3ea1ffc1a24.tar.bz2
Refactor the function query compilation function out
This is an initial stab to refactor the query based compilation for paths.
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.h')
-rw-r--r--gcc/rust/backend/rust-compile-resolve-path.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-compile-resolve-path.h b/gcc/rust/backend/rust-compile-resolve-path.h
index 41067c8..6c234d1 100644
--- a/gcc/rust/backend/rust-compile-resolve-path.h
+++ b/gcc/rust/backend/rust-compile-resolve-path.h
@@ -58,6 +58,12 @@ private:
const Analysis::NodeMapping &mappings, Location locus,
bool is_qualified_path);
+ Bexpression *
+ query_compile_function (HirId ref, TyTy::FnType *fntype,
+ const HIR::PathIdentSegment &final_segment,
+ const Analysis::NodeMapping &mappings,
+ Location expr_locus, bool is_qualified_path);
+
Bexpression *resolved;
};