Compare commits
1 Commits
6e36338eba
...
21a862b2bf
Author | SHA1 | Date | |
---|---|---|---|
21a862b2bf |
@ -888,7 +888,6 @@ LLVMIntrinsicIndex = enum u32
|
||||
{
|
||||
"llvm.ctlz",
|
||||
"llvm.cttz",
|
||||
"llvm.debugtrap",
|
||||
"llvm.smax",
|
||||
"llvm.smin",
|
||||
"llvm.trap",
|
||||
@ -2033,7 +2032,6 @@ ValueId = enum
|
||||
macro_instantiation,
|
||||
field_parent_pointer,
|
||||
build_mode,
|
||||
breakpoint,
|
||||
}
|
||||
|
||||
ValueConstantInteger = struct
|
||||
@ -4128,7 +4126,6 @@ ValueKeyword = enum
|
||||
ValueIntrinsic = enum
|
||||
{
|
||||
align_of,
|
||||
breakpoint,
|
||||
build_mode,
|
||||
byte_size,
|
||||
enum_from_int,
|
||||
@ -5772,7 +5769,6 @@ parse_left = fn (module: &Module, scope: &Scope, builder: ValueBuilder) &Value
|
||||
.trap,
|
||||
.va_start,
|
||||
.has_debug_info,
|
||||
.breakpoint,
|
||||
=>
|
||||
{
|
||||
skip_space(module);
|
||||
@ -5786,7 +5782,6 @@ parse_left = fn (module: &Module, scope: &Scope, builder: ValueBuilder) &Value
|
||||
.trap => { id = .trap; },
|
||||
.va_start => { id = .va_start; },
|
||||
.has_debug_info => { id = .has_debug_info; },
|
||||
.breakpoint => { id = .breakpoint; },
|
||||
else => { unreachable; },
|
||||
}
|
||||
|
||||
@ -12437,15 +12432,6 @@ analyze_type = fn (module: &Module, value: &Value, expected_type: &Type, analysi
|
||||
value_type = uint1(module);
|
||||
typecheck(module, expected_type, value_type);
|
||||
},
|
||||
.breakpoint =>
|
||||
{
|
||||
if (expected_type)
|
||||
{
|
||||
report_error();
|
||||
}
|
||||
|
||||
value_type = void_type(module);
|
||||
},
|
||||
else =>
|
||||
{
|
||||
@trap();
|
||||
@ -15615,11 +15601,6 @@ emit_value = fn (module: &Module, value: &Value, type_kind: TypeKind, expect_con
|
||||
{
|
||||
llvm_value = LLVMConstInt(get_llvm_type(resolved_value_type, type_kind), @extend(module.has_debug_info), 0);
|
||||
},
|
||||
.breakpoint =>
|
||||
{
|
||||
>call = emit_intrinsic_call(module, ."llvm.debugtrap", zero, zero);
|
||||
llvm_value = call;
|
||||
},
|
||||
else =>
|
||||
{
|
||||
@trap();
|
||||
|
@ -2061,15 +2061,6 @@ pointer_sub = fn () void
|
||||
require(sub == 1);
|
||||
}
|
||||
|
||||
breakpoint = fn () void
|
||||
{
|
||||
>ok: u1 = 1;
|
||||
if (!ok)
|
||||
{
|
||||
@breakpoint();
|
||||
}
|
||||
}
|
||||
|
||||
CPUArchitecture = enum
|
||||
{
|
||||
x86_64,
|
||||
@ -2128,6 +2119,7 @@ struct_arbitrary_int_abi = fn () void
|
||||
require(some_struct.e == 123);
|
||||
require(some_struct.f == 45);
|
||||
require(some_struct.g == 46);
|
||||
}
|
||||
|
||||
[export] main = fn [cc(c)] (argc: s32, argv: &&u8, envp: &&u8) s32
|
||||
{
|
||||
@ -2392,8 +2384,6 @@ struct_arbitrary_int_abi = fn () void
|
||||
|
||||
pointer_sub();
|
||||
|
||||
breakpoint();
|
||||
|
||||
struct_arbitrary_int_abi();
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user