weiwang closed this revision.
weiwang added a comment.
Diff was committed, but did not close automatically. Manual close it now.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85810/new/
https://reviews.llvm.org/D85810
_
weiwang updated this revision to Diff 301140.
weiwang added a comment.
fix typo
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85810/new/
https://reviews.llvm.org/D85810
Files:
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/test/Driver/opt-re
weiwang updated this revision to Diff 293296.
weiwang added a comment.
minor update to test case
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85810/new/
https://reviews.llvm.org/D85810
Files:
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/t
MaskRay accepted this revision.
MaskRay added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:104
+ CmdArgs.push_back(Args.MakeArgString(
+ Twine("--plugin-opt=opt-remarks-format=") + Format.data()));
weiwang updated this revision to Diff 293276.
weiwang added a comment.
1. remove unreachable code
2. udpate test case
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85810/new/
https://reviews.llvm.org/D85810
Files:
clang/lib/Driver/ToolChains/Com
MaskRay added inline comments.
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:95
+if (F.empty())
+ F = llvm::sys::path::stem(Input.getBaseInput());
+ }
Is the `F.empty()` case unreachable? Please delete the code or add an assert
==
weiwang marked an inline comment as done.
weiwang added inline comments.
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:90
+ } else {
+if (Output.isFilename())
+ F = Output.getFilename();
MaskRay wrote:
> The output selection logic is untested.
weiwang updated this revision to Diff 292676.
weiwang added a comment.
update test case
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85810/new/
https://reviews.llvm.org/D85810
Files:
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/test/Drive
MaskRay added inline comments.
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:90
+ } else {
+if (Output.isFilename())
+ F = Output.getFilename();
The output selection logic is untested.
Comment at: clang/test/Driver/opt-record
thegameg accepted this revision.
thegameg added a comment.
LGTM
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85810/new/
https://reviews.llvm.org/D85810
___
cfe-commits mailing list
cfe-commits@lists.llv
weiwang updated this revision to Diff 288447.
weiwang added a comment.
remove redundant check
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85810/new/
https://reviews.llvm.org/D85810
Files:
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/test
weiwang added inline comments.
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:596
+ // Handle remark diagnostics on screen options: '-Rpass-*'.
+ if (usesRpassOptions(Args))
+renderRpassOptions(Args, CmdArgs);
tejohnson wrote:
> Is this guard needed
tejohnson added a comment.
Looks pretty good but I think it can be simplified in one place as I note below.
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:596
+ // Handle remark diagnostics on screen options: '-Rpass-*'.
+ if (usesRpassOptions(Args))
+renderRpassO
weiwang updated this revision to Diff 286468.
weiwang marked an inline comment as done.
weiwang added a comment.
fix typo
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85810/new/
https://reviews.llvm.org/D85810
Files:
clang/include/clang/Driver/
weiwang marked 5 inline comments as done.
weiwang added inline comments.
Comment at: clang/include/clang/Driver/Driver.h:638
+/// This checks for clang specific R-value ('-Rpass-*') group.
+bool hasRpassOptions(const llvm::opt::ArgList &Args);
+
bruno wrote:
> Ni
weiwang updated this revision to Diff 286467.
weiwang added a comment.
coding style change
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85810/new/
https://reviews.llvm.org/D85810
Files:
clang/include/clang/Driver/Driver.h
clang/lib/Driver/Dri
bruno added a comment.
Hi Wei, this looks handy! Minor stylish comments below.
Comment at: clang/include/clang/Driver/Driver.h:638
+/// This checks for clang specific R-value ('-Rpass-*') group.
+bool hasRpassOptions(const llvm::opt::ArgList &Args);
+
Nitpickin
weiwang updated this revision to Diff 286204.
weiwang added a comment.
move some unrelated change into parent diff.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85810/new/
https://reviews.llvm.org/D85810
Files:
clang/include/clang/Driver/Driver
MaskRay added inline comments.
Comment at: lld/ELF/Options.td:595
HelpText<"Alias for --lto-obj-path=">;
+def: J<"plugin-opt=opt-remarks-filename=">,
+ Alias,
The change should be moved to a previous patch which will add `--opt-remarks-*`
options.
Reposito
19 matches
Mail list logo