13 #ifndef LLVM_TEXTAPI_MACHO_PACKED_VERSION_H 14 #define LLVM_TEXTAPI_MACHO_PACKED_VERSION_H 29 : Version((Major << 16) | ((Minor & 0xff) << 8) | (Subminor & 0xff)) {}
31 bool empty()
const {
return Version == 0; }
34 unsigned getMajor()
const {
return Version >> 16; }
37 unsigned getMinor()
const {
return (Version >> 8) & 0xff; }
64 #endif // LLVM_TEXTAPI_MACHO_PACKED_VERSION_H
This class represents lattice values for constants.
uint32_t rawValue() const
constexpr PackedVersion()=default
bool parse32(StringRef Str)
void print(raw_ostream &OS) const
bool operator<(const PackedVersion &O) const
unsigned getMajor() const
Retrieve the major version number.
PackedVersion(unsigned Major, unsigned Minor, unsigned Subminor)
raw_ostream & operator<<(raw_ostream &OS, Architecture Arch)
std::pair< bool, bool > parse64(StringRef Str)
bool operator!=(const PackedVersion &O) const
bool operator==(const PackedVersion &O) const
unsigned getMinor() const
Retrieve the minor version number, if provided.
unsigned getSubminor() const
Retrieve the subminor version number, if provided.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
constexpr PackedVersion(uint32_t RawVersion)