diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-11-23 09:46:58 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-11-23 09:46:58 +0000 |
| commit | 543a2d1e5a0ee96e782fb184ea5b73b9081c0eff (patch) | |
| tree | 8fa17a5fb07c8103dc88d6b760ef1d73c06876a5 /src/ssa_print.cpp | |
| parent | 36ad9dae43cd21d8532994cd0d0e92a89af0ed04 (diff) | |
Swap b32 to bool, et al.
Diffstat (limited to 'src/ssa_print.cpp')
| -rw-r--r-- | src/ssa_print.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ssa_print.cpp b/src/ssa_print.cpp index 2f074008d..dd96b679a 100644 --- a/src/ssa_print.cpp +++ b/src/ssa_print.cpp @@ -51,7 +51,7 @@ void ssa_file_write(ssaFileBuffer *f, void *data, isize len) { } -b32 ssa_valid_char(u8 c) { +bool ssa_valid_char(u8 c) { if (c >= 0x80) { return false; } @@ -71,7 +71,7 @@ b32 ssa_valid_char(u8 c) { return false; } -void ssa_print_escape_string(ssaFileBuffer *f, String name, b32 print_quotes) { +void ssa_print_escape_string(ssaFileBuffer *f, String name, bool print_quotes) { isize extra = 0; for (isize i = 0; i < name.len; i++) { u8 c = name.text[i]; @@ -126,7 +126,7 @@ void ssa_print_encoded_local(ssaFileBuffer *f, String name) { ssa_print_escape_string(f, name, true); } -void ssa_print_encoded_global(ssaFileBuffer *f, String name, b32 global_scope) { +void ssa_print_encoded_global(ssaFileBuffer *f, String name, bool global_scope) { ssa_fprintf(f, "@"); if (!global_scope && name != make_string("main")) { ssa_fprintf(f, "."); @@ -611,7 +611,7 @@ void ssa_print_value(ssaFileBuffer *f, ssaModule *m, ssaValue *value, Type *type break; case ssaValue_Global: { Scope *scope = value->Global.entity->scope; - b32 in_global_scope = false; + bool in_global_scope = false; if (scope != NULL) { in_global_scope = scope->is_global || scope->is_init; } @@ -1337,7 +1337,7 @@ void ssa_print_llvm_ir(ssaGen *ssa) { } auto *g = &v->Global; Scope *scope = g->entity->scope; - b32 in_global_scope = false; + bool in_global_scope = false; if (scope != NULL) { in_global_scope = scope->is_global || scope->is_init; } |