Skip to content

Commit

Permalink
Default protocols. Closes #1039
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Oct 10, 2023
1 parent b7a8968 commit a9c28cc
Show file tree
Hide file tree
Showing 75 changed files with 2,104 additions and 1,762 deletions.
2 changes: 2 additions & 0 deletions src/compiler/compiler_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,13 @@ typedef struct
bool attr_finalizer : 1;
bool attr_protocol_method : 1;
bool attr_dynamic : 1;
bool attr_default : 1;
bool is_lambda : 1;
union
{
uint32_t priority;
DeclId protocol_method;
DeclId default_method;
Decl **generated_lambda;
Decl **lambda_ct_parameters;
};
Expand Down
1 change: 1 addition & 0 deletions src/compiler/enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,7 @@ typedef enum
ATTRIBUTE_BIGENDIAN,
ATTRIBUTE_BUILTIN,
ATTRIBUTE_CALLCONV,
ATTRIBUTE_DEFAULT,
ATTRIBUTE_DEPRECATED,
ATTRIBUTE_DYNAMIC,
ATTRIBUTE_EXPORT,
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/llvm_codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <llvm-c/Linker.h>

const char *varargslots_name = "varargslots";
const char *temp_name = "#temp#";
const char *temp_name = "$$temp";
typedef struct LLVMOpaquePassBuilderOptions *LLVMPassBuilderOptionsRef;
LLVMErrorRef LLVMRunPasses(LLVMModuleRef M, const char *Passes,
LLVMTargetMachineRef TM,
Expand Down
Loading

0 comments on commit a9c28cc

Please sign in to comment.