summaryrefslogtreecommitdiff
path: root/src/trans/mangling.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-03 15:44:00 +0800
committerJohn Hodge <tpg@mutabah.net>2016-12-03 15:44:00 +0800
commite5a626edeac23f1eb1d4748d3fa667478db857c5 (patch)
tree4d31becf0acf8d5a8dd8d18e197399f8ce01e310 /src/trans/mangling.hpp
parent16e7559bcca93b885bc0d2480a388960104bf78e (diff)
downloadmrust-e5a626edeac23f1eb1d4748d3fa667478db857c5.tar.gz
Trans Codegen - Structure coming up
Diffstat (limited to 'src/trans/mangling.hpp')
-rw-r--r--src/trans/mangling.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/trans/mangling.hpp b/src/trans/mangling.hpp
new file mode 100644
index 00000000..b9ead23d
--- /dev/null
+++ b/src/trans/mangling.hpp
@@ -0,0 +1,20 @@
+/*
+ * MRustC - Rust Compiler
+ * - By John Hodge (Mutabah/thePowersGang)
+ *
+ * trans/mangling.hpp
+ * - Name mangling support
+ */
+#pragma once
+#include <string>
+
+namespace HIR {
+ class GenericPath;
+ class Path;
+ class TypeRef;
+}
+
+extern ::std::string Trans_Mangle(const ::HIR::GenericPath& path);
+extern ::std::string Trans_Mangle(const ::HIR::Path& path);
+extern ::std::string Trans_Mangle(const ::HIR::TypeRef& ty);
+