[bitcode project] do not encode primary file in CmdArgs.

Swift SVN r25945
This commit is contained in:
Manman Ren
2015-03-10 19:58:27 +00:00
parent 71d17b1a47
commit 6071ac39d2

View File

@@ -1016,6 +1016,7 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
// Do not encode output and input.
if ((*A)->getOption().getID() == options::OPT_o ||
(*A)->getOption().getID() == options::OPT_INPUT ||
(*A)->getOption().getID() == options::OPT_primary_file ||
(*A)->getOption().getID() == options::OPT_embed_bitcode)
continue;
ArgStringList ASL;