LLVM  6.0.0svn
Public Member Functions | Protected Attributes | List of all members
llvm::DWARFYAML::VisitorImpl< T > Class Template Reference

A class to visits DWARFYAML Compile Units and DIEs in preorder. More...

#include "ObjectYAML/DWARFVisitor.h"

Inheritance diagram for llvm::DWARFYAML::VisitorImpl< T >:
Inheritance graph
[legend]
Collaboration diagram for llvm::DWARFYAML::VisitorImpl< T >:
Collaboration graph
[legend]

Public Member Functions

 VisitorImpl (T &DI)
 
virtual ~VisitorImpl ()
 
void traverseDebugInfo ()
 

Protected Member Functions

virtual void onStartCompileUnit (Unit &CU)
 Visitor Functions. More...
 
virtual void onEndCompileUnit (Unit &CU)
 
virtual void onStartDIE (Unit &CU, Entry &DIE)
 
virtual void onEndDIE (Unit &CU, Entry &DIE)
 
virtual void onForm (AttributeAbbrev &AttAbbrev, FormValue &Value)
 
virtual void onStartCompileUnit (const Unit &CU)
 Const Visitor Functions. More...
 
virtual void onEndCompileUnit (const Unit &CU)
 
virtual void onStartDIE (const Unit &CU, const Entry &DIE)
 
virtual void onEndDIE (const Unit &CU, const Entry &DIE)
 
virtual void onForm (const AttributeAbbrev &AttAbbrev, const FormValue &Value)
 
virtual void onValue (const uint8_t U)
 Value visitors. More...
 
virtual void onValue (const uint16_t U)
 
virtual void onValue (const uint32_t U)
 
virtual void onValue (const uint64_t U, const bool LEB=false)
 
virtual void onValue (const int64_t S, const bool LEB=false)
 
virtual void onValue (const StringRef String)
 
virtual void onValue (const MemoryBufferRef MBR)
 

Protected Attributes

TDebugInfo
 

Detailed Description

template<typename T>
class llvm::DWARFYAML::VisitorImpl< T >

A class to visits DWARFYAML Compile Units and DIEs in preorder.

Extensions of this class can either maintain const or non-const references to the DWARFYAML::Data object.

Definition at line 33 of file DWARFVisitor.h.

Constructor & Destructor Documentation

◆ VisitorImpl()

template<typename T>
llvm::DWARFYAML::VisitorImpl< T >::VisitorImpl ( T DI)
inline

Definition at line 68 of file DWARFVisitor.h.

◆ ~VisitorImpl()

template<typename T>
virtual llvm::DWARFYAML::VisitorImpl< T >::~VisitorImpl ( )
inlinevirtual

Definition at line 70 of file DWARFVisitor.h.

Member Function Documentation

◆ onEndCompileUnit() [1/2]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onEndCompileUnit ( Unit CU)
inlineprotectedvirtual

Definition at line 40 of file DWARFVisitor.h.

◆ onEndCompileUnit() [2/2]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onEndCompileUnit ( const Unit CU)
inlineprotectedvirtual

Definition at line 49 of file DWARFVisitor.h.

◆ onEndDIE() [1/2]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onEndDIE ( Unit CU,
Entry DIE 
)
inlineprotectedvirtual

Definition at line 42 of file DWARFVisitor.h.

◆ onEndDIE() [2/2]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onEndDIE ( const Unit CU,
const Entry DIE 
)
inlineprotectedvirtual

Definition at line 51 of file DWARFVisitor.h.

◆ onForm() [1/2]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onForm ( AttributeAbbrev AttAbbrev,
FormValue Value 
)
inlineprotectedvirtual

Definition at line 43 of file DWARFVisitor.h.

◆ onForm() [2/2]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onForm ( const AttributeAbbrev AttAbbrev,
const FormValue Value 
)
inlineprotectedvirtual

Definition at line 52 of file DWARFVisitor.h.

◆ onStartCompileUnit() [1/2]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onStartCompileUnit ( Unit CU)
inlineprotectedvirtual

Visitor Functions.

Definition at line 39 of file DWARFVisitor.h.

◆ onStartCompileUnit() [2/2]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onStartCompileUnit ( const Unit CU)
inlineprotectedvirtual

Const Visitor Functions.

Definition at line 48 of file DWARFVisitor.h.

◆ onStartDIE() [1/2]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onStartDIE ( Unit CU,
Entry DIE 
)
inlineprotectedvirtual

Definition at line 41 of file DWARFVisitor.h.

◆ onStartDIE() [2/2]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onStartDIE ( const Unit CU,
const Entry DIE 
)
inlineprotectedvirtual

Definition at line 50 of file DWARFVisitor.h.

◆ onValue() [1/7]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onValue ( const uint8_t  U)
inlineprotectedvirtual

Value visitors.

Definition at line 58 of file DWARFVisitor.h.

◆ onValue() [2/7]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onValue ( const uint16_t  U)
inlineprotectedvirtual

Definition at line 59 of file DWARFVisitor.h.

◆ onValue() [3/7]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onValue ( const uint32_t  U)
inlineprotectedvirtual

Definition at line 60 of file DWARFVisitor.h.

◆ onValue() [4/7]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onValue ( const uint64_t  U,
const bool  LEB = false 
)
inlineprotectedvirtual

Definition at line 61 of file DWARFVisitor.h.

◆ onValue() [5/7]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onValue ( const int64_t  S,
const bool  LEB = false 
)
inlineprotectedvirtual

Definition at line 62 of file DWARFVisitor.h.

◆ onValue() [6/7]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onValue ( const StringRef  String)
inlineprotectedvirtual

Definition at line 63 of file DWARFVisitor.h.

◆ onValue() [7/7]

template<typename T>
virtual void llvm::DWARFYAML::VisitorImpl< T >::onValue ( const MemoryBufferRef  MBR)
inlineprotectedvirtual

Definition at line 64 of file DWARFVisitor.h.

◆ traverseDebugInfo()

template<typename T >
void DWARFYAML::VisitorImpl::traverseDebugInfo ( )

Member Data Documentation

◆ DebugInfo

template<typename T>
T& llvm::DWARFYAML::VisitorImpl< T >::DebugInfo
protected

Definition at line 35 of file DWARFVisitor.h.


The documentation for this class was generated from the following files: