Print an enumeration value by name when known, otherwise as hex.
Declared in <llvm/Support/ScopedPrinter.h>
template<
typename T,
typename TEnum,
unsigned int NumStrs>
void
printEnum(
StringRef Label,
T Value,
EnumStrings<TEnum, NumStrs> EnumValues);
| Name | Description |
|---|---|
| T | Numeric type of the enumeration value. |
| TEnum | Enumeration type described by EnumValues. |
| NumStrs | Number of string entries in EnumValues. |
| Name | Description |
|---|---|
| Label | Field label to print. |
| Value | Enumeration value to print. |
| EnumValues | Mapping from values to display names. |