LLVM  9.0.0svn
Static Public Member Functions | List of all members
llvm::format_provider< Enum, typename std::enable_if< dwarf::EnumTraits< Enum >::value >::type > Struct Template Reference

Dwarf constants format_provider. More...

#include "llvm/BinaryFormat/Dwarf.h"

Static Public Member Functions

static void format (const Enum &E, raw_ostream &OS, StringRef Style)
 

Detailed Description

template<typename Enum>
struct llvm::format_provider< Enum, typename std::enable_if< dwarf::EnumTraits< Enum >::value >::type >

Dwarf constants format_provider.

Specialization of the format_provider template for dwarf enums. Unlike the dumping functions above, these format unknown enumerator values as DW_TYPE_unknown_1234 (e.g. DW_TAG_unknown_ffff).

Definition at line 615 of file Dwarf.h.

Member Function Documentation

◆ format()

template<typename Enum >
static void llvm::format_provider< Enum, typename std::enable_if< dwarf::EnumTraits< Enum >::value >::type >::format ( const Enum &  E,
raw_ostream OS,
StringRef  Style 
)
inlinestatic

Definition at line 617 of file Dwarf.h.

References llvm::StringRef::empty(), and llvm::format().


The documentation for this struct was generated from the following file: