[PATCH] D34790: [NewPM] Add a flag -fexperimental-new-pass-manager=on/off/debug for printing debug output.

Chandler Carruth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 28 17:56:23 PDT 2017

chandlerc added inline comments.

Comment at: clang/include/clang/Driver/Options.td:971-973
+def fexperimental_new_pass_manager_EQ : Joined<["-"], "fexperimental-new-pass-manager=">,
+  Group<f_clang_Group>, Flags<[CC1Option]>,
+  HelpText<"Enables an experimental new pass manager in LLVM.">, Values<"on,off,debug">;
I don't think we want to expose this flag in the driver -- it should really be a CC1-only thing for debugging.

As such, I think I'd just make it an independent flag:


Or some such. This also seems easier than having to define a new kind.


More information about the cfe-commits mailing list