LLVM  12.0.0git
Classes | Public Member Functions | List of all members
llvm::DWARFExpression Class Reference

#include "llvm/DebugInfo/DWARF/DWARFExpression.h"

Classes

class  iterator
 An iterator to go through the expression operations. More...
 
class  Operation
 This class represents an Operation in the Expression. More...
 

Public Member Functions

 DWARFExpression (DataExtractor Data, uint8_t AddressSize, Optional< dwarf::DwarfFormat > Format=None)
 
iterator begin () const
 
iterator end () const
 
void print (raw_ostream &OS, const MCRegisterInfo *RegInfo, DWARFUnit *U, bool IsEH=false) const
 
bool printCompact (raw_ostream &OS, const MCRegisterInfo &RegInfo)
 Print the expression in a format intended to be compact and useful to a user, but not perfectly unambiguous, or capable of representing every valid DWARF expression. More...
 
bool verify (DWARFUnit *U)
 

Detailed Description

Definition at line 24 of file DWARFExpression.h.

Constructor & Destructor Documentation

◆ DWARFExpression()

llvm::DWARFExpression::DWARFExpression ( DataExtractor  Data,
uint8_t  AddressSize,
Optional< dwarf::DwarfFormat Format = None 
)
inline

Definition at line 137 of file DWARFExpression.h.

References assert().

Member Function Documentation

◆ begin()

iterator llvm::DWARFExpression::begin ( ) const
inline

Definition at line 143 of file DWARFExpression.h.

◆ end()

iterator llvm::DWARFExpression::end ( ) const
inline

◆ print()

void llvm::DWARFExpression::print ( raw_ostream OS,
const MCRegisterInfo RegInfo,
DWARFUnit U,
bool  IsEH = false 
) const

Definition at line 314 of file DWARFExpression.cpp.

References llvm::Data, and llvm::format().

Referenced by dumpExpression().

◆ printCompact()

bool llvm::DWARFExpression::printCompact ( raw_ostream OS,
const MCRegisterInfo RegInfo 
)

Print the expression in a format intended to be compact and useful to a user, but not perfectly unambiguous, or capable of representing every valid DWARF expression.

Returns true if the expression was sucessfully printed.

Definition at line 495 of file DWARFExpression.cpp.

References llvm::sys::path::begin(), llvm::sys::path::end(), and llvm::printCompactDWARFExpr().

Referenced by end().

◆ verify()

bool llvm::DWARFExpression::verify ( DWARFUnit U)

Definition at line 369 of file DWARFExpression.cpp.


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