If either time-trace-granularity or time-trace-file is specified, then don't make users specify -time-trace.
It seems silly that I have to type all three options, eg, -time-trace -time-trace-file=- -time-trace-granularity=....
Details
Details
- Reviewers
int3 - Group Reviewers
Restricted Project - Commits
- rGdb851dfb4958: [lld-macho] Make time-trace* options more permissive.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/test/MachO/time-trace.s | ||
---|---|---|
17 | technically we should test if *either* of the other two are used :) |
lld/test/MachO/time-trace.s | ||
---|---|---|
17 | Done - I've removed the --time-trace from line 11 - that should test it :) |
lld/MachO/Driver.cpp | ||
---|---|---|
1036–1039 | looks like hasArg actually takes a varargs list, so I think this should work |
lld/MachO/Driver.cpp | ||
---|---|---|
1036–1039 |
lld/MachO/Driver.cpp | ||
---|---|---|
1036–1039 | Thanks! |
looks like hasArg actually takes a varargs list, so I think this should work