Update for ParseARgs ArrayRef-ification

llvm-svn: 240239
This commit is contained in:
David Blaikie 2015-06-21 06:58:19 +00:00
parent 1f584934c6
commit faa9280bdc

View File

@ -323,9 +323,8 @@ static std::string findInputFile(const CommandLineArguments &CLArgs) {
E = CLArgs.end();
I != E; ++I)
Argv.push_back(I->c_str());
std::unique_ptr<InputArgList> Args(
Opts->ParseArgs(Argv.data(), Argv.data() + Argv.size(), MissingArgIndex,
MissingArgCount, IncludedFlagsBitmask));
std::unique_ptr<InputArgList> Args(Opts->ParseArgs(
Argv, MissingArgIndex, MissingArgCount, IncludedFlagsBitmask));
std::vector<std::string> Inputs = Args->getAllArgValues(OPT_INPUT);
return ModularizeUtilities::getCanonicalPath(Inputs.back());
}