summaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/go-encode-id.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go/gofrontend/go-encode-id.h')
-rw-r--r--gcc/go/gofrontend/go-encode-id.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/go-encode-id.h b/gcc/go/gofrontend/go-encode-id.h
index ec81b63a182..70126bae9d1 100644
--- a/gcc/go/gofrontend/go-encode-id.h
+++ b/gcc/go/gofrontend/go-encode-id.h
@@ -20,6 +20,11 @@ go_id_needs_encoding(const std::string& str);
extern std::string
go_encode_id(const std::string &id);
+// Decodes an encoded ID, returning the original string handed off to
+// go_encode_id().
+extern std::string
+go_decode_id(const std::string &id);
+
// Returns the empty string if the specified name needs encoding,
// otherwise invokes go_encode_id on the name and returns the result.
extern std::string