LLVM  13.0.0git
Public Member Functions | List of all members
llvm::MachO::PackedVersion Class Reference

#include "llvm/TextAPI/MachO/PackedVersion.h"

Public Member Functions

constexpr PackedVersion ()=default
 
constexpr PackedVersion (uint32_t RawVersion)
 
 PackedVersion (unsigned Major, unsigned Minor, unsigned Subminor)
 
bool empty () const
 
unsigned getMajor () const
 Retrieve the major version number. More...
 
unsigned getMinor () const
 Retrieve the minor version number, if provided. More...
 
unsigned getSubminor () const
 Retrieve the subminor version number, if provided. More...
 
bool parse32 (StringRef Str)
 
std::pair< bool, bool > parse64 (StringRef Str)
 
bool operator< (const PackedVersion &O) const
 
bool operator== (const PackedVersion &O) const
 
bool operator!= (const PackedVersion &O) const
 
uint32_t rawValue () const
 
void print (raw_ostream &OS) const
 

Detailed Description

Definition at line 25 of file PackedVersion.h.

Constructor & Destructor Documentation

◆ PackedVersion() [1/3]

constexpr llvm::MachO::PackedVersion::PackedVersion ( )
constexprdefault

◆ PackedVersion() [2/3]

constexpr llvm::MachO::PackedVersion::PackedVersion ( uint32_t  RawVersion)
inlineexplicitconstexpr

Definition at line 30 of file PackedVersion.h.

◆ PackedVersion() [3/3]

llvm::MachO::PackedVersion::PackedVersion ( unsigned  Major,
unsigned  Minor,
unsigned  Subminor 
)
inline

Definition at line 31 of file PackedVersion.h.

Member Function Documentation

◆ empty()

bool llvm::MachO::PackedVersion::empty ( ) const
inline

Definition at line 34 of file PackedVersion.h.

◆ getMajor()

unsigned llvm::MachO::PackedVersion::getMajor ( ) const
inline

Retrieve the major version number.

Definition at line 37 of file PackedVersion.h.

Referenced by print().

◆ getMinor()

unsigned llvm::MachO::PackedVersion::getMinor ( ) const
inline

Retrieve the minor version number, if provided.

Definition at line 40 of file PackedVersion.h.

Referenced by print().

◆ getSubminor()

unsigned llvm::MachO::PackedVersion::getSubminor ( ) const
inline

Retrieve the subminor version number, if provided.

Definition at line 43 of file PackedVersion.h.

Referenced by print().

◆ operator!=()

bool llvm::MachO::PackedVersion::operator!= ( const PackedVersion O) const
inline

Definition at line 52 of file PackedVersion.h.

References llvm::RISCVFenceField::O.

◆ operator<()

bool llvm::MachO::PackedVersion::operator< ( const PackedVersion O) const
inline

Definition at line 48 of file PackedVersion.h.

References llvm::RISCVFenceField::O.

◆ operator==()

bool llvm::MachO::PackedVersion::operator== ( const PackedVersion O) const
inline

Definition at line 50 of file PackedVersion.h.

References llvm::RISCVFenceField::O.

◆ parse32()

bool llvm::MachO::PackedVersion::parse32 ( StringRef  Str)

Definition at line 23 of file PackedVersion.cpp.

References llvm::StringRef::empty(), llvm::getAsUnsignedInteger(), and i.

◆ parse64()

std::pair< bool, bool > llvm::MachO::PackedVersion::parse64 ( StringRef  Str)

Definition at line 57 of file PackedVersion.cpp.

References llvm::StringRef::empty(), llvm::getAsUnsignedInteger(), and i.

◆ print()

void llvm::MachO::PackedVersion::print ( raw_ostream OS) const

Definition at line 104 of file PackedVersion.cpp.

References llvm::format(), getMajor(), getMinor(), and getSubminor().

◆ rawValue()

uint32_t llvm::MachO::PackedVersion::rawValue ( ) const
inline

Definition at line 54 of file PackedVersion.h.


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