summaryrefslogtreecommitdiff
path: root/src/hir_expand/main_bindings.hpp
blob: 5971e7141912be28e3875a080c367b4d113182f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * MRustC - Rust Compiler
 * - By John Hodge (Mutabah/thePowersGang)
 *
 * hir_expand/main_bindings.hpp
 * - Functions defined in this folder that are called by main
 */
#pragma once

namespace HIR {
    class Crate;
    class ExprPtr;
};

extern void HIR_Expand_AnnotateUsage(::HIR::Crate& crate);
extern void HIR_Expand_VTables(::HIR::Crate& crate);
extern void HIR_Expand_Closures(::HIR::Crate& crate);
extern void HIR_Expand_UfcsEverything(::HIR::Crate& crate);
extern void HIR_Expand_Reborrows(::HIR::Crate& crate);
extern void HIR_Expand_ErasedType(::HIR::Crate& crate);
extern void ConvertHIR_ConstantEvaluateFull(::HIR::Crate& crate);

extern void HIR_Expand_AnnotateUsage_Expr(const ::HIR::Crate& crate, ::HIR::ExprPtr& exp);
extern void HIR_Expand_Closures_Expr(const ::HIR::Crate& crate, ::HIR::ExprPtr& exp);
extern void HIR_Expand_UfcsEverything_Expr(const ::HIR::Crate& crate, ::HIR::ExprPtr& exp);
extern void HIR_Expand_Reborrows_Expr(const ::HIR::Crate& crate, ::HIR::ExprPtr& exp);