This is an archive of the discontinued LLVM Phabricator instance.

Translate index of command line item into in index of parsed argument
AbandonedPublic

Authored by sepavloff on Dec 12 2016, 12:59 AM.

Details

Reviewers
None
Summary

Support of configuration files needs means to distinguish arguments that come
from such file and those actually specified in command line. In particular, the
warnings about unused argument need to be suppressed for the arguments defined
in config files. Number of strings that come from configuration file can be
determined by the code that expands this file. Driver then converts these strings
into collection of objects of type 'llvm::opt::Arg', this is not a one-to-one
transformation. Options with separated arguments, such as '-triple' are
represented by two strings in command line but are transformed into one argument
object.

These change adds additional argument to 'OptTable::ParseArgs', which allows to
calculate number of arguments corresponding to config file content.

Event Timeline

sepavloff updated this revision to Diff 81054.Dec 12 2016, 12:59 AM
sepavloff retitled this revision from to Translate index of command line item into in index of parsed argument.
sepavloff updated this object.
sepavloff added a subscriber: llvm-commits.
sepavloff edited the summary of this revision. (Show Details)Feb 1 2017, 7:04 PM
sepavloff abandoned this revision.May 9 2017, 11:46 AM
sepavloff removed a subscriber: llvm-commits.

Current implementation in D24933 does not require this change anymore.