hliao marked an inline comment as done.
hliao added inline comments.

================
Comment at: clang/lib/Tooling/Tooling.cpp:117
   // The one job we find should be to invoke clang again.
   const auto &Cmd = cast<driver::Command>(*Jobs.begin());
   if (StringRef(Cmd.getCreator().getName()) != "clang") {
----------------
tra wrote:
> Is this still the right job for us to pick? I think we want this to be the 
> host compilation. 
> 
> As things are right now my guess is that we're probably picking the first 
> device-side compilation.
yes, OffloadAction is appended to the original host action. The corresponding 
first job is the host compilation. The frontend has similar handling in 
`lib/Frontend/CreateInvocationFromCommandLine.cpp`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68660/new/

https://reviews.llvm.org/D68660



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to