mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Update panic emit.
This commit is contained in:
@@ -72,7 +72,6 @@ typedef struct
|
||||
unsigned runtime_version : 8;
|
||||
bool enable_stacktrace : 1;
|
||||
bool emulated_stacktrace : 1;
|
||||
bool x : 1;
|
||||
LLVMDIBuilderRef builder;
|
||||
DebugFile *debug_files;
|
||||
DebugFile file;
|
||||
@@ -550,7 +549,8 @@ void llvm_emit_update_stack_row(GenContext *c, uint32_t row);
|
||||
void llvm_emit_pop_stacktrace(GenContext *c, Stacktrace *slot);
|
||||
void llvm_emit_push_emulated_stacktrace(GenContext *c, Decl *decl, const char *function_name, StacktraceType type);
|
||||
|
||||
#define EMIT_LOC(c, x) do { if (c->debug.builder) llvm_emit_debug_location(c, x->span); } while (0);
|
||||
#define EMIT_LOC(c, x) do { if (c->debug.builder) llvm_emit_debug_location(c, x->span); } while (0)
|
||||
#define EMIT_SPAN(c, x) do { if (c->debug.builder) llvm_emit_debug_location(c, x); } while (0)
|
||||
|
||||
LLVMAtomicOrdering llvm_atomic_ordering(Atomicity atomicity);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user