[PATCH] D51002: [Tooling] Allow -flto flags and filter out -Wa, flags

Chih-Hung Hsieh via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 21 13:17:42 PDT 2018


chh added a comment.

I tested with clang-tidy test.cpp -- -c -Iinc -flto,
and found that in Driver.cpp:getTool Inputs has one action equal to
BackendJobClass (without -flto) or CompileJobClass (with -flto).

When in CompilationDatabase:stripPositionalArgs, the Jobs has only one
AssembleJobClass (without -flto) or BackendJobClass (with -flto).
It is confusing to change the Backend/Compile to Assemble/Backend.
However, I have not seen multiple jobs yet. 
Do you have a test case that could trigger multiple jobs with or without -flto?


https://reviews.llvm.org/D51002





More information about the llvm-commits mailing list