[Driver] Move the "-o OUT -x TYPE SRC.c" flags to the end of -cc1
authorReid Kleckner <rnk@google.com>
Thu, 23 May 2019 18:35:43 +0000 (18:35 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 23 May 2019 18:35:43 +0000 (18:35 +0000)
commit549ed544c3b37f45a8e0c26d18468339e0b7bd7e
treeed44bf1406e17de03c4a93a8a5146805a8b6a1e3
parent06e80f642612a7f80a15543f1cd84a19d688d3f7
[Driver] Move the "-o OUT -x TYPE SRC.c" flags to the end of -cc1

New -cc1 arguments, such as -faddrsig, have started appearing after the
input name. I personally find it convenient for the input to be the last
argument to the compile command line, since I often need to edit it when
running crash reproduction scripts.

Differential Revision: https://reviews.llvm.org/D62270

llvm-svn: 361530
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/cuda-options.cu
clang/test/Driver/hip-toolchain-no-rdc.hip
clang/test/Driver/openmp-offload.c