LLVM API Documentation

Classes | Public Member Functions | Static Public Member Functions
llvm::SpecialCaseList Class Reference

#include <SpecialCaseList.h>

List of all members.

Classes

struct  Entry

Public Member Functions

 ~SpecialCaseList ()
bool inSection (StringRef Section, StringRef Query, StringRef Category=StringRef()) const

Static Public Member Functions

static std::unique_ptr
< SpecialCaseList
create (StringRef Path, std::string &Error)
static std::unique_ptr
< SpecialCaseList
create (const MemoryBuffer *MB, std::string &Error)
static std::unique_ptr
< SpecialCaseList
createOrDie (StringRef Path)

Detailed Description

Definition at line 58 of file SpecialCaseList.h.


Constructor & Destructor Documentation

Definition at line 158 of file SpecialCaseList.cpp.


Member Function Documentation

std::unique_ptr< SpecialCaseList > llvm::SpecialCaseList::create ( StringRef  Path,
std::string &  Error 
) [static]

Parses the special case list from a file. If Path is empty, returns an empty special case list. On failure, returns 0 and writes an error message to string.

Definition at line 51 of file SpecialCaseList.cpp.

References llvm::StringRef::empty(), llvm::lltok::Error, llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), and llvm::MemoryBuffer::getFile().

Referenced by createOrDie().

std::unique_ptr< SpecialCaseList > llvm::SpecialCaseList::create ( const MemoryBuffer MB,
std::string &  Error 
) [static]

Parses the special case list from a memory buffer. On failure, returns 0 and writes an error message to string.

Definition at line 64 of file SpecialCaseList.cpp.

std::unique_ptr< SpecialCaseList > llvm::SpecialCaseList::createOrDie ( StringRef  Path) [static]

Parses the special case list from a file. On failure, reports a fatal error.

Definition at line 72 of file SpecialCaseList.cpp.

References create(), llvm::lltok::Error, and llvm::report_fatal_error().

bool llvm::SpecialCaseList::inSection ( StringRef  Section,
StringRef  Query,
StringRef  Category = StringRef() 
) const

Returns true, if special case list contains a line

   @Section:<E>=@Category

and satisfies a wildcard expression <E>.

Definition at line 160 of file SpecialCaseList.cpp.

References llvm::StringMap< ValueTy, AllocatorTy >::end(), llvm::StringMap< ValueTy, AllocatorTy >::find(), llvm::StringMapEntry< ValueTy >::getValue(), and I.


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