This is an archive of the discontinued LLVM Phabricator instance.

Driver: render arguments for the embedded bitcode correctly
ClosedPublic

Authored by compnerd on Sep 18 2018, 3:47 PM.

Details

Summary

When embedding bitcode, only a subset of the arguments should be recorded into
the bitcode compilation command line. 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.

Diff Detail

Event Timeline

compnerd created this revision.Sep 18 2018, 3:47 PM

Thanks for doing this!

Can you add some test cases just to be complete? Other than that, LGTM!

compnerd accepted this revision.Sep 24 2018, 10:50 PM
This revision is now accepted and ready to land.Sep 24 2018, 10:50 PM
compnerd closed this revision.Sep 24 2018, 10:50 PM

SVN r342929 (with tests)