LLVM API Documentation

Public Types | Public Member Functions
llvm::StringMatcher Class Reference

#include <StringMatcher.h>

List of all members.

Public Types

typedef std::pair< std::string,
std::string > 
StringPair

Public Member Functions

 StringMatcher (StringRef strVariableName, const std::vector< StringPair > &matches, raw_ostream &os)
void Emit (unsigned Indent=0) const

Detailed Description

StringMatcher - Given a list of strings and code to execute when they match, output a simple switch tree to classify the input string.

If a match is found, the code in Vals[i].second is executed; control must not exit this code fragment. If nothing matches, execution falls through.

Definition at line 31 of file StringMatcher.h.


Member Typedef Documentation

typedef std::pair<std::string, std::string> llvm::StringMatcher::StringPair

Definition at line 33 of file StringMatcher.h.


Constructor & Destructor Documentation

llvm::StringMatcher::StringMatcher ( StringRef  strVariableName,
const std::vector< StringPair > &  matches,
raw_ostream os 
) [inline]

Definition at line 41 of file StringMatcher.h.


Member Function Documentation

void StringMatcher::Emit ( unsigned  Indent = 0) const

Emit - Top level entry point.

Definition at line 124 of file StringMatcher.cpp.

References llvm::raw_ostream::indent(), and LI.


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