LLVM API Documentation

Public Member Functions
llvm::opt::InputArgList Class Reference

#include <ArgList.h>

Inheritance diagram for llvm::opt::InputArgList:
Inheritance graph
[legend]
Collaboration diagram for llvm::opt::InputArgList:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 InputArgList (const char *const *ArgBegin, const char *const *ArgEnd)
 ~InputArgList ()
const char * getArgString (unsigned Index) const override
 getArgString - Return the input argument string at Index.
unsigned getNumInputArgStrings () const override
Arg Synthesis
unsigned MakeIndex (StringRef String0) const
 MakeIndex - Get an index for the given string(s).
unsigned MakeIndex (StringRef String0, StringRef String1) const
const char * MakeArgString (StringRef Str) const override

Detailed Description

Definition at line 299 of file ArgList.h.


Constructor & Destructor Documentation

InputArgList::InputArgList ( const char *const ArgBegin,
const char *const ArgEnd 
)

Definition at line 306 of file ArgList.cpp.

References llvm::SmallVectorImpl< T >::append().

Definition at line 312 of file ArgList.cpp.

References llvm::opt::ArgList::begin(), and llvm::opt::ArgList::end().


Member Function Documentation

const char* llvm::opt::InputArgList::getArgString ( unsigned  Index) const [inline, override, virtual]
unsigned llvm::opt::InputArgList::getNumInputArgStrings ( ) const [inline, override, virtual]

getNumInputArgStrings - Return the number of original argument strings, which are guaranteed to be the first strings in the argument string list.

Implements llvm::opt::ArgList.

Definition at line 326 of file ArgList.h.

Referenced by llvm::opt::DerivedArgList::getNumInputArgStrings().

const char * InputArgList::MakeArgString ( StringRef  Str) const [override, virtual]

MakeArgString - Construct a constant string pointer whose lifetime will match that of the ArgList.

Implements llvm::opt::ArgList.

Definition at line 337 of file ArgList.cpp.

References getArgString(), and MakeIndex().

Referenced by llvm::opt::DerivedArgList::MakeArgString().

unsigned InputArgList::MakeIndex ( StringRef  String0,
StringRef  String1 
) const

Definition at line 328 of file ArgList.cpp.

References MakeIndex().


The documentation for this class was generated from the following files: