mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-26 07:01:05 +00:00
Update for ParseARgs ArrayRef-ification
llvm-svn: 240239
This commit is contained in:
parent
1f584934c6
commit
faa9280bdc
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user