[project @ 2000-04-03 13:05:52 by sewardj]
authorsewardj <unknown>
Mon, 3 Apr 2000 13:05:52 +0000 (13:05 +0000)
committersewardj <unknown>
Mon, 3 Apr 2000 13:05:52 +0000 (13:05 +0000)
When generating native code, print the final result with printForAsm
rather than printForUser.  Why the former ever worked beats me.

ghc/compiler/main/CodeOutput.lhs

index 47f3b36..a61e047 100644 (file)
@@ -48,7 +48,7 @@ codeOutput mod_name tycons classes stg_binds c_code h_code flat_abstractC ncg_un
 #ifndef OMIT_NATIVE_CODEGEN
     let
        (stix_final, ncg_output_d) = nativeCodeGen flat_absC_ncg ncg_uniqs
-       ncg_output_w = (\ f -> printForUser f ncg_output_d)
+       ncg_output_w = (\ f -> printForAsm f ncg_output_d)
     in
     dumpIfSet opt_D_dump_stix "Final stix code" stix_final     >>
     dumpIfSet opt_D_dump_asm "Asm code" ncg_output_d           >>