diff options
author | John Hodge <tpg@mutabah.net> | 2016-12-04 20:57:37 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-12-04 20:57:37 +0800 |
commit | 44cb8f56e6f2828b588408a9efd1f1fa019ab11c (patch) | |
tree | a72777d75c8af4e013133f02e0da449c5256c89f /src/mir/operations.hpp | |
parent | 1cb526a077bfef3aba508927250e3213186cf496 (diff) | |
download | mrust-44cb8f56e6f2828b588408a9efd1f1fa019ab11c.tar.gz |
MIR - Move vtable conversion to its own pass
Diffstat (limited to 'src/mir/operations.hpp')
-rw-r--r-- | src/mir/operations.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mir/operations.hpp b/src/mir/operations.hpp new file mode 100644 index 00000000..a32531e9 --- /dev/null +++ b/src/mir/operations.hpp @@ -0,0 +1,12 @@ +/* + * MRustC - Rust Compiler + * - By John Hodge (Mutabah/thePowersGang) + * + * mir/operations.hpp + * - Common header for operations performed on MIR functions + */ +#include <hir_typeck/static.hpp> +#include <hir/item_path.hpp> + +extern void MIR_Validate(const StaticTraitResolve& resolve, const ::HIR::ItemPath& path, const ::MIR::Function& fcn, const ::HIR::Function::args_t& args, const ::HIR::TypeRef& ret_type); +extern void MIR_Cleanup(const StaticTraitResolve& resolve, const ::HIR::ItemPath& path, ::MIR::Function& fcn, const ::HIR::Function::args_t& args, const ::HIR::TypeRef& ret_type); |