diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2020-03-26 17:41:38 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-26 17:41:38 +0000 |
| commit | 6bbecbe895a7b413dee61da772586be4e3138174 (patch) | |
| tree | a86e716cb2a519a7bff7a320821fbde7abd8673e /src/parser.hpp | |
| parent | 7909872877fd5c82c29df711f160838a7a4e59e1 (diff) | |
| parent | b21993a1c470a533a83e5b01274d3b026fb34f9b (diff) | |
Merge pull request #595 from odin-lang/llvm-integration
LLVM C API Integration
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 3de848ca6..129f1d41b 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -98,7 +98,6 @@ struct AstFile { Array<Ast *> imports; // 'import' 'using import' isize directive_count; - Ast * curr_proc; isize error_count; @@ -111,6 +110,9 @@ struct AstFile { #define PARSER_MAX_FIX_COUNT 6 isize fix_count; TokenPos fix_prev_pos; + + struct LLVMOpaqueMetadata *llvm_metadata; + struct LLVMOpaqueMetadata *llvm_metadata_scope; }; @@ -174,12 +176,10 @@ enum ProcCallingConvention { ProcCC_StdCall, ProcCC_FastCall, - // TODO(bill): Add extra calling conventions - // ProcCC_VectorCall, - // ProcCC_ClrCall, - ProcCC_None, + ProcCC_MAX, + ProcCC_ForeignBlockDefault = -1, }; @@ -251,6 +251,7 @@ enum StmtAllowFlag { ProcInlining inlining; \ Token where_token; \ Array<Ast *> where_clauses; \ + DeclInfo *decl; \ }) \ AST_KIND(CompoundLit, "compound literal", struct { \ Ast *type; \ |