diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llc/llc.cpp | 3 | ||||
-rw-r--r-- | tools/opt/opt.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 0528cc2197..7f5fa3ffe8 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -338,6 +338,9 @@ int main(int argc, char **argv) { return 1; } + // Before executing passes, print the final values of the LLVM options. + cl::PrintOptionValues(); + PM.run(mod); } diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 3f60126b0d..25474c44a6 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -701,6 +701,9 @@ int main(int argc, char **argv) { Passes.add(createBitcodeWriterPass(Out->os())); } + // Before executing passes, print the final values of the LLVM options. + cl::PrintOptionValues(); + // Now that we have all of the passes ready, run them. Passes.run(*M.get()); |