[PATCH] D51002: [Tooling] Allow -flto flags and filter out -Wa, flags
Eric Liu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 21 01:13:16 PDT 2018
ioeric added inline comments.
================
Comment at: lib/Tooling/CompilationDatabase.cpp:304
if (Cmd.getSource().getKind() == driver::Action::AssembleJobClass ||
+ Cmd.getSource().getKind() == driver::Action::BackendJobClass ||
Cmd.getSource().getKind() == driver::Action::CompileJobClass) {
----------------
It seems to me that `BackendJob` will always be preceded by a `CompileJob` (according to https://github.com/llvm-mirror/clang/blob/master/lib/Driver/Driver.cpp#L3506), so at least of one job would be `CompileJobClass` here. Not sure if I understood it correctly though. Would you mind clarify?
https://reviews.llvm.org/D51002
More information about the llvm-commits
mailing list