Skip to content

Commit

Permalink
minor update to optimized llvm out
Browse files Browse the repository at this point in the history
  • Loading branch information
scauligi committed Nov 10, 2018
1 parent 62df557 commit 2743304
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/command_util.ml
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,19 @@ let output_assembly args out_file =
let fpic_arg = if args.fpic then "-fpic" else "" in
let opt_arg =
match args.opt_level with
| O0 -> "-O0"
| O1 -> "-O1"
| O2 -> "-O2"
| O3 -> "-O3"
| _ -> "" in
| OF -> "-OF" in
if args.llvm_out then
run_command "clang-6.0" [|"clang-6.0"; "-S"; "-emit-llvm"; opt_arg;
"-mavx";
"-fno-strict-aliasing";
"-fno-strict-overflow";
"-fstack-protector";
"-mretpoline";
out_file_bc; "-o"; out_file_ll|] true |> ignore;
fpic_arg; out_file_bc; "-o"; out_file_ll|] true |> ignore;
run_command "clang-6.0" [|"clang-6.0"; "-S"; opt_arg;
"-mavx";
"-fno-strict-aliasing";
Expand Down

0 comments on commit 2743304

Please sign in to comment.