summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'nasm.c')
-rw-r--r--nasm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nasm.c b/nasm.c
index e8bc680..e6be925 100644
--- a/nasm.c
+++ b/nasm.c
@@ -173,6 +173,10 @@ int main(int argc, char **argv)
return 1;
}
+ /* If debugging info is disabled, suppress any debug calls */
+ if (!using_debug_info)
+ ofmt->current_dfmt = &null_debug_form;
+
if (ofmt->stdmac)
pp_extra_stdmac (ofmt->stdmac);
parser_global_info (ofmt, &location);