[PATCH] D128409: [clang-cl] Add -emit-ast to clang-cl driver
Tobias Hieta via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 23 01:43:56 PDT 2022
thieta added inline comments.
================
Comment at: clang/include/clang/Driver/Options.td:834
def Xoffload_linker : JoinedAndSeparate<["-"], "Xoffload-linker">,
- HelpText<"Pass <arg> to the offload linkers or the ones idenfied by -<triple>">,
+ HelpText<"Pass <arg> to the offload linkers or the ones idenfied by -<triple>">,
MetaVarName<"<triple> <arg>">, Group<Link_Group>;
----------------
Whops. My editor strikes again and removes a trailing space. Let me know if I should edit this out of this commit.
================
Comment at: clang/lib/Driver/Driver.cpp:5629
+ if ((JA.getType() == types::TY_Object || JA.getType() == types::TY_LTO_BC ||
+ JA.getType() == types::TY_AST || JA.getType() == types::TY_Plist) &&
C.getArgs().hasArg(options::OPT__SLASH_Fo, options::OPT__SLASH_o)) {
----------------
I do wonder if this limitation here is really wanted. It makes clang-cl behave a bit different from clang/clang++. I can also split this part out in it's own commit if we feel like it's necessary.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128409/new/
https://reviews.llvm.org/D128409
More information about the cfe-commits
mailing list