diff options
| author | gingerBill <bill@gingerbill.org> | 2020-04-13 12:00:40 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-04-13 12:00:40 +0100 |
| commit | 65a2125dba5652577588afee31d7333f13eb0c31 (patch) | |
| tree | 2b7da4905dd3ce06c79f50079d20200ba5b4aba9 /src/ir_print.cpp | |
| parent | 9e698b720f4f26341db81b70ea5f70f5bdfd9e3a (diff) | |
Add `-build-mode=obj`
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index ebb729420..6d7148eab 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -2382,10 +2382,8 @@ void ir_print_proc(irFileBuffer *f, irModule *m, irProcedure *proc) { } else { ir_write_byte(f, '\n'); ir_write_str_lit(f, "define "); - if (build_context.is_dll) { - if (proc->is_export) { - ir_write_str_lit(f, "dllexport "); - } + if (proc->is_export) { + ir_write_str_lit(f, "dllexport "); } // if (!proc->is_export && !proc->is_foreign && !proc->is_entry_point) { // ir_write_string(f, "internal "); @@ -2735,10 +2733,8 @@ void print_llvm_ir(irGen *ir) { if (g->is_foreign) { ir_write_string(f, str_lit("external ")); } - if (build_context.is_dll) { - if (g->is_export) { - ir_write_string(f, str_lit("dllexport ")); - } + if (g->is_export) { + ir_write_string(f, str_lit("dllexport ")); } if (g->is_private) { |