summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-11-20 22:13:26 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2022-11-20 22:13:44 +0100
commitf5007126f3140a8c932d393c5b217308b80bd46a (patch)
treebd20a170071acf950ef5b79d04afe8c73126a477
parenta70aa044ded9402ec107920e97aea3cfdc4f5964 (diff)
downloadroux-f5007126f3140a8c932d393c5b217308b80bd46a.tar.gz
export getalias()
We will be using it in the new
coalesce() pass.
-rw-r--r--alias.c2
-rw-r--r--all.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/alias.c b/alias.c
index 01d77e8..19aca2a 100644
--- a/alias.c
+++ b/alias.c
@@ -1,6 +1,6 @@
 #include "all.h"
 
-static void
+void
 getalias(Alias *a, Ref r, Fn *fn)
 {
 	Con *c;
diff --git a/all.h b/all.h
index 43cdd62..8dd4276 100644
--- a/all.h
+++ b/all.h
@@ -518,6 +518,7 @@ void memopt(Fn *);
 
 /* alias.c */
 void fillalias(Fn *);
+void getalias(Alias *, Ref, Fn *);
 int alias(Ref, int, Ref, int, int *, Fn *);
 int escapes(Ref, Fn *);