Driver: render arguments for the embedded bitcode correctly
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 24 Sep 2018 23:50:02 +0000 (23:50 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 24 Sep 2018 23:50:02 +0000 (23:50 +0000)
commit51313bc6d97d32b39c20c2b5c913e9b023967835
tree2cd0e58fa9c2fc67c161c23534f1ff86782213af
parent586153652c8c480efe44763d6e792eb727db6cae
Driver: render arguments for the embedded bitcode correctly

When embedding bitcode, only a subset of the arguments should be recorded into
the bitcode compilation commandline.  The frontend job is split into two jobs,
one which will generate the bitcode.  Ensure that the arguments for the
compilation to bitcode is properly stripped so that the embedded arguments are
the permitted subset.

llvm-svn: 342929
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/fembed-bitcode.c [new file with mode: 0644]