[PATCH] D127519: [clang-cl] Accept /FA[c][s][u], but ignore the arguments
Stephen Long via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 10 11:47:29 PDT 2022
steplong created this revision.
Herald added a project: All.
steplong requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.
Previously, /FAsc would emit a warning. Now, it will just do what /FA does.
https://docs.microsoft.com/en-us/cpp/build/reference/fa-fa-listing-file?view=msvc-170
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D127519
Files:
clang/lib/Driver/Driver.cpp
Index: clang/lib/Driver/Driver.cpp
===================================================================
--- clang/lib/Driver/Driver.cpp
+++ clang/lib/Driver/Driver.cpp
@@ -4872,7 +4872,8 @@
return TC.useIntegratedAs() && !SaveTemps &&
!C.getArgs().hasArg(options::OPT_via_file_asm) &&
!C.getArgs().hasArg(options::OPT__SLASH_FA) &&
- !C.getArgs().hasArg(options::OPT__SLASH_Fa);
+ !C.getArgs().hasArg(options::OPT__SLASH_Fa) &&
+ !C.getArgs().hasArg(options::OPT__SLASH_FA_joined);
}
/// Return true if a preprocessor action can be collapsed.
@@ -5552,7 +5553,8 @@
// Is this the assembly listing for /FA?
if (JA.getType() == types::TY_PP_Asm &&
(C.getArgs().hasArg(options::OPT__SLASH_FA) ||
- C.getArgs().hasArg(options::OPT__SLASH_Fa))) {
+ C.getArgs().hasArg(options::OPT__SLASH_Fa) ||
+ C.getArgs().hasArg(options::OPT__SLASH_FA_joined))) {
// Use /Fa and the input filename to determine the asm file name.
StringRef BaseName = llvm::sys::path::filename(BaseInput);
StringRef FaValue = C.getArgs().getLastArgValue(options::OPT__SLASH_Fa);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127519.435991.patch
Type: text/x-patch
Size: 1156 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220610/cfaeb6a8/attachment.bin>
More information about the cfe-commits
mailing list