Update panic emit.

This commit is contained in:
Christoffer Lerno
2023-11-13 19:49:25 +01:00
parent 1dde6092e5
commit 9345e4270a
6 changed files with 16 additions and 20 deletions

View File

@@ -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);