LLVM  10.0.0svn
Macros
Dwarf.cpp File Reference
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/BinaryFormat/Dwarf.def"
Include dependency graph for Dwarf.cpp:

Go to the source code of this file.

Macros

#define HANDLE_DW_TAG(ID, NAME, VERSION, VENDOR, KIND)
 
#define HANDLE_DW_TAG(ID, NAME, VERSION, VENDOR, KIND)   .Case("DW_TAG_" #NAME, DW_TAG_##NAME)
 
#define HANDLE_DW_TAG(ID, NAME, VERSION, VENDOR, KIND)
 
#define HANDLE_DW_TAG(ID, NAME, VERSION, VENDOR, KIND)
 
#define HANDLE_DW_AT(ID, NAME, VERSION, VENDOR)
 
#define HANDLE_DW_AT(ID, NAME, VERSION, VENDOR)
 
#define HANDLE_DW_AT(ID, NAME, VERSION, VENDOR)
 
#define HANDLE_DW_FORM(ID, NAME, VERSION, VENDOR)
 
#define HANDLE_DW_FORM(ID, NAME, VERSION, VENDOR)
 
#define HANDLE_DW_FORM(ID, NAME, VERSION, VENDOR)
 
#define HANDLE_DW_OP(ID, NAME, VERSION, VENDOR)
 
#define HANDLE_DW_OP(ID, NAME, VERSION, VENDOR)   .Case("DW_OP_" #NAME, DW_OP_##NAME)
 
#define HANDLE_DW_OP(ID, NAME, VERSION, VENDOR)
 
#define HANDLE_DW_OP(ID, NAME, VERSION, VENDOR)
 
#define HANDLE_DW_ATE(ID, NAME, VERSION, VENDOR)
 
#define HANDLE_DW_ATE(ID, NAME, VERSION, VENDOR)   .Case("DW_ATE_" #NAME, DW_ATE_##NAME)
 
#define HANDLE_DW_ATE(ID, NAME, VERSION, VENDOR)
 
#define HANDLE_DW_ATE(ID, NAME, VERSION, VENDOR)
 
#define HANDLE_DW_VIRTUALITY(ID, NAME)
 
#define HANDLE_DW_VIRTUALITY(ID, NAME)   .Case("DW_VIRTUALITY_" #NAME, DW_VIRTUALITY_##NAME)
 
#define HANDLE_DW_LANG(ID, NAME, LOWER_BOUND, VERSION, VENDOR)
 
#define HANDLE_DW_LANG(ID, NAME, LOWER_BOUND, VERSION, VENDOR)   .Case("DW_LANG_" #NAME, DW_LANG_##NAME)
 
#define HANDLE_DW_LANG(ID, NAME, LOWER_BOUND, VERSION, VENDOR)
 
#define HANDLE_DW_LANG(ID, NAME, LOWER_BOUND, VERSION, VENDOR)
 
#define HANDLE_DW_LANG(ID, NAME, LOWER_BOUND, VERSION, VENDOR)
 
#define HANDLE_DW_CC(ID, NAME)
 
#define HANDLE_DW_CC(ID, NAME)   .Case("DW_CC_" #NAME, DW_CC_##NAME)
 
#define HANDLE_DW_LNS(ID, NAME)
 
#define HANDLE_DW_LNE(ID, NAME)
 
#define HANDLE_DW_RLE(ID, NAME)
 
#define HANDLE_DW_LLE(ID, NAME)
 
#define SELECT_AARCH64   (Arch == llvm::Triple::aarch64_be || Arch == llvm::Triple::aarch64)
 
#define SELECT_MIPS64   Arch == llvm::Triple::mips64
 
#define SELECT_SPARC   (Arch == llvm::Triple::sparc || Arch == llvm::Triple::sparcv9)
 
#define SELECT_X86   (Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64)
 
#define HANDLE_DW_CFA(ID, NAME)
 
#define HANDLE_DW_CFA_PRED(ID, NAME, PRED)
 
#define HANDLE_DW_CFA_PRED(ID, NAME, PRED)
 
#define HANDLE_DW_CFA(ID, NAME)
 
#define HANDLE_DW_APPLE_PROPERTY(ID, NAME)
 
#define HANDLE_DW_UT(ID, NAME)
 
#define HANDLE_DW_IDX(ID, NAME)
 

Macro Definition Documentation

◆ HANDLE_DW_APPLE_PROPERTY

#define HANDLE_DW_APPLE_PROPERTY (   ID,
  NAME 
)
Value:
case DW_APPLE_PROPERTY_##NAME: \
return "DW_APPLE_PROPERTY_" #NAME;

◆ HANDLE_DW_AT [1/3]

#define HANDLE_DW_AT (   ID,
  NAME,
  VERSION,
  VENDOR 
)
Value:
case DW_AT_##NAME: \
return "DW_AT_" #NAME;

◆ HANDLE_DW_AT [2/3]

#define HANDLE_DW_AT (   ID,
  NAME,
  VERSION,
  VENDOR 
)
Value:
case DW_AT_##NAME: \
return VERSION;

◆ HANDLE_DW_AT [3/3]

#define HANDLE_DW_AT (   ID,
  NAME,
  VERSION,
  VENDOR 
)
Value:
case DW_AT_##NAME: \
return DWARF_VENDOR_##VENDOR;

◆ HANDLE_DW_ATE [1/4]

#define HANDLE_DW_ATE (   ID,
  NAME,
  VERSION,
  VENDOR 
)
Value:
case DW_ATE_##NAME: \
return "DW_ATE_" #NAME;

Referenced by llvm::dwarf::getAttributeEncoding().

◆ HANDLE_DW_ATE [2/4]

#define HANDLE_DW_ATE (   ID,
  NAME,
  VERSION,
  VENDOR 
)    .Case("DW_ATE_" #NAME, DW_ATE_##NAME)

◆ HANDLE_DW_ATE [3/4]

#define HANDLE_DW_ATE (   ID,
  NAME,
  VERSION,
  VENDOR 
)
Value:
case DW_ATE_##NAME: \
return VERSION;

◆ HANDLE_DW_ATE [4/4]

#define HANDLE_DW_ATE (   ID,
  NAME,
  VERSION,
  VENDOR 
)
Value:
case DW_ATE_##NAME: \
return DWARF_VENDOR_##VENDOR;

◆ HANDLE_DW_CC [1/2]

#define HANDLE_DW_CC (   ID,
  NAME 
)
Value:
case DW_CC_##NAME: \
return "DW_CC_" #NAME;

Referenced by llvm::dwarf::getCallingConvention().

◆ HANDLE_DW_CC [2/2]

#define HANDLE_DW_CC (   ID,
  NAME 
)    .Case("DW_CC_" #NAME, DW_CC_##NAME)

◆ HANDLE_DW_CFA [1/2]

#define HANDLE_DW_CFA (   ID,
  NAME 
)

◆ HANDLE_DW_CFA [2/2]

#define HANDLE_DW_CFA (   ID,
  NAME 
)
Value:
case DW_CFA_##NAME: \
return "DW_CFA_" #NAME;

◆ HANDLE_DW_CFA_PRED [1/2]

#define HANDLE_DW_CFA_PRED (   ID,
  NAME,
  PRED 
)
Value:
if (ID == Encoding && PRED) \
return "DW_CFA_" #NAME;

◆ HANDLE_DW_CFA_PRED [2/2]

#define HANDLE_DW_CFA_PRED (   ID,
  NAME,
  PRED 
)

◆ HANDLE_DW_FORM [1/3]

#define HANDLE_DW_FORM (   ID,
  NAME,
  VERSION,
  VENDOR 
)
Value:
case DW_FORM_##NAME: \
return "DW_FORM_" #NAME;

◆ HANDLE_DW_FORM [2/3]

#define HANDLE_DW_FORM (   ID,
  NAME,
  VERSION,
  VENDOR 
)
Value:
case DW_FORM_##NAME: \
return VERSION;

◆ HANDLE_DW_FORM [3/3]

#define HANDLE_DW_FORM (   ID,
  NAME,
  VERSION,
  VENDOR 
)
Value:
case DW_FORM_##NAME: \
return DWARF_VENDOR_##VENDOR;

◆ HANDLE_DW_IDX

#define HANDLE_DW_IDX (   ID,
  NAME 
)
Value:
case DW_IDX_##NAME: \
return "DW_IDX_" #NAME;

◆ HANDLE_DW_LANG [1/5]

#define HANDLE_DW_LANG (   ID,
  NAME,
  LOWER_BOUND,
  VERSION,
  VENDOR 
)
Value:
case DW_LANG_##NAME: \
return "DW_LANG_" #NAME;

Referenced by llvm::dwarf::getLanguage().

◆ HANDLE_DW_LANG [2/5]

#define HANDLE_DW_LANG (   ID,
  NAME,
  LOWER_BOUND,
  VERSION,
  VENDOR 
)    .Case("DW_LANG_" #NAME, DW_LANG_##NAME)

◆ HANDLE_DW_LANG [3/5]

#define HANDLE_DW_LANG (   ID,
  NAME,
  LOWER_BOUND,
  VERSION,
  VENDOR 
)
Value:
case DW_LANG_##NAME: \
return VERSION;

◆ HANDLE_DW_LANG [4/5]

#define HANDLE_DW_LANG (   ID,
  NAME,
  LOWER_BOUND,
  VERSION,
  VENDOR 
)
Value:
case DW_LANG_##NAME: \
return DWARF_VENDOR_##VENDOR;

◆ HANDLE_DW_LANG [5/5]

#define HANDLE_DW_LANG (   ID,
  NAME,
  LOWER_BOUND,
  VERSION,
  VENDOR 
)
Value:
case DW_LANG_##NAME: \
return LOWER_BOUND;

◆ HANDLE_DW_LLE

#define HANDLE_DW_LLE (   ID,
  NAME 
)
Value:
case DW_LLE_##NAME: \
return "DW_LLE_" #NAME;

◆ HANDLE_DW_LNE

#define HANDLE_DW_LNE (   ID,
  NAME 
)
Value:
case DW_LNE_##NAME: \
return "DW_LNE_" #NAME;

◆ HANDLE_DW_LNS

#define HANDLE_DW_LNS (   ID,
  NAME 
)
Value:
case DW_LNS_##NAME: \
return "DW_LNS_" #NAME;

◆ HANDLE_DW_OP [1/4]

#define HANDLE_DW_OP (   ID,
  NAME,
  VERSION,
  VENDOR 
)
Value:
case DW_OP_##NAME: \
return "DW_OP_" #NAME;

Referenced by llvm::dwarf::getOperationEncoding().

◆ HANDLE_DW_OP [2/4]

#define HANDLE_DW_OP (   ID,
  NAME,
  VERSION,
  VENDOR 
)    .Case("DW_OP_" #NAME, DW_OP_##NAME)

◆ HANDLE_DW_OP [3/4]

#define HANDLE_DW_OP (   ID,
  NAME,
  VERSION,
  VENDOR 
)
Value:
case DW_OP_##NAME: \
return VERSION;

◆ HANDLE_DW_OP [4/4]

#define HANDLE_DW_OP (   ID,
  NAME,
  VERSION,
  VENDOR 
)
Value:
case DW_OP_##NAME: \
return DWARF_VENDOR_##VENDOR;

◆ HANDLE_DW_RLE

#define HANDLE_DW_RLE (   ID,
  NAME 
)
Value:
case DW_RLE_##NAME: \
return "DW_RLE_" #NAME;

◆ HANDLE_DW_TAG [1/4]

#define HANDLE_DW_TAG (   ID,
  NAME,
  VERSION,
  VENDOR,
  KIND 
)
Value:
case DW_TAG_##NAME: \
return "DW_TAG_" #NAME;

Referenced by llvm::dwarf::getTag().

◆ HANDLE_DW_TAG [2/4]

#define HANDLE_DW_TAG (   ID,
  NAME,
  VERSION,
  VENDOR,
  KIND 
)    .Case("DW_TAG_" #NAME, DW_TAG_##NAME)

◆ HANDLE_DW_TAG [3/4]

#define HANDLE_DW_TAG (   ID,
  NAME,
  VERSION,
  VENDOR,
  KIND 
)
Value:
case DW_TAG_##NAME: \
return VERSION;

◆ HANDLE_DW_TAG [4/4]

#define HANDLE_DW_TAG (   ID,
  NAME,
  VERSION,
  VENDOR,
  KIND 
)
Value:
case DW_TAG_##NAME: \
return DWARF_VENDOR_##VENDOR;

◆ HANDLE_DW_UT

#define HANDLE_DW_UT (   ID,
  NAME 
)
Value:
case DW_UT_##NAME: \
return "DW_UT_" #NAME;

◆ HANDLE_DW_VIRTUALITY [1/2]

#define HANDLE_DW_VIRTUALITY (   ID,
  NAME 
)
Value:
case DW_VIRTUALITY_##NAME: \
return "DW_VIRTUALITY_" #NAME;

Referenced by llvm::dwarf::getVirtuality().

◆ HANDLE_DW_VIRTUALITY [2/2]

#define HANDLE_DW_VIRTUALITY (   ID,
  NAME 
)    .Case("DW_VIRTUALITY_" #NAME, DW_VIRTUALITY_##NAME)

◆ SELECT_AARCH64

#define SELECT_AARCH64   (Arch == llvm::Triple::aarch64_be || Arch == llvm::Triple::aarch64)

◆ SELECT_MIPS64

#define SELECT_MIPS64   Arch == llvm::Triple::mips64

◆ SELECT_SPARC

#define SELECT_SPARC   (Arch == llvm::Triple::sparc || Arch == llvm::Triple::sparcv9)

◆ SELECT_X86

#define SELECT_X86   (Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64)