LLVM  15.0.0git
Macros
FormatUtil.cpp File Reference
#include "llvm/DebugInfo/PDB/Native/FormatUtil.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/BinaryFormat/COFF.h"
#include "llvm/DebugInfo/CodeView/CodeView.h"
#include "llvm/Support/FormatAdapters.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/DebugInfo/CodeView/CodeViewSymbols.def"
#include "llvm/DebugInfo/CodeView/CodeViewTypes.def"
Include dependency graph for FormatUtil.cpp:

Go to the source code of this file.

Macros

#define SYMBOL_RECORD(EnumName, value, name)
 
#define CV_SYMBOL(EnumName, value)   SYMBOL_RECORD(EnumName, value, EnumName)
 
#define TYPE_RECORD(EnumName, value, name)
 
#define PUSH_CHARACTERISTIC_FLAG(Enum, TheOpt, Value, Style, Descriptive)
 
#define PUSH_MASKED_CHARACTERISTIC_FLAG(Enum, Mask, TheOpt, Value, Style, Descriptive)
 

Macro Definition Documentation

◆ CV_SYMBOL

#define CV_SYMBOL (   EnumName,
  value 
)    SYMBOL_RECORD(EnumName, value, EnumName)

◆ PUSH_CHARACTERISTIC_FLAG

#define PUSH_CHARACTERISTIC_FLAG (   Enum,
  TheOpt,
  Value,
  Style,
  Descriptive 
)
Value:
PUSH_FLAG(Enum, TheOpt, Value, \
((Style == CharacteristicStyle::HeaderDefinition) ? #TheOpt \
: Descriptive))

Definition at line 125 of file FormatUtil.cpp.

◆ PUSH_MASKED_CHARACTERISTIC_FLAG

#define PUSH_MASKED_CHARACTERISTIC_FLAG (   Enum,
  Mask,
  TheOpt,
  Value,
  Style,
  Descriptive 
)
Value:
PUSH_MASKED_FLAG(Enum, Mask, TheOpt, Value, \
((Style == CharacteristicStyle::HeaderDefinition) \
? #TheOpt \
: Descriptive))

Definition at line 130 of file FormatUtil.cpp.

◆ SYMBOL_RECORD

#define SYMBOL_RECORD (   EnumName,
  value,
  name 
)
Value:
case EnumName: \
return #EnumName;

◆ TYPE_RECORD

#define TYPE_RECORD (   EnumName,
  value,
  name 
)
Value:
case EnumName: \
return #EnumName;
PUSH_FLAG
#define PUSH_FLAG(Enum, TheOpt, Value, Text)
Definition: FormatUtil.h:29
llvm::BitmaskEnumDetail::Mask
constexpr std::underlying_type_t< E > Mask()
Get a bitmask with 1s in all places up to the high-order bit of E's largest value.
Definition: BitmaskEnum.h:80
llvm::HexStyle::Style
Style
Definition: MCInstPrinter.h:32
PUSH_MASKED_FLAG
#define PUSH_MASKED_FLAG(Enum, Mask, TheOpt, Value, Text)
Definition: FormatUtil.h:25
EnumName
StringLiteral EnumName
Definition: MCSectionMachO.cpp:26
llvm::Value
LLVM Value Representation.
Definition: Value.h:74