LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
llvm::DIEInteger Class Reference

#include <DIE.h>

Inheritance diagram for llvm::DIEInteger:
Inheritance graph
[legend]
Collaboration diagram for llvm::DIEInteger:
Collaboration graph
[legend]

Public Member Functions

 DIEInteger (uint64_t I)
 
virtual void EmitValue (AsmPrinter *AP, dwarf::Form Form) const
 
uint64_t getValue () const
 
virtual unsigned SizeOf (AsmPrinter *AP, dwarf::Form Form) const
 
virtual void print (raw_ostream &O) const
 
- Public Member Functions inherited from llvm::DIEValue
 DIEValue (unsigned T)
 
virtual ~DIEValue ()
 
unsigned getType () const
 
void dump () const
 

Static Public Member Functions

static dwarf::Form BestForm (bool IsSigned, uint64_t Int)
 
static bool classof (const DIEValue *I)
 

Additional Inherited Members

- Public Types inherited from llvm::DIEValue
enum  {
  isInteger, isString, isExpr, isLabel,
  isDelta, isEntry, isBlock
}
 
- Protected Attributes inherited from llvm::DIEValue
unsigned Type
 

Detailed Description

DIEInteger - An integer value DIE.

Definition at line 228 of file DIE.h.

Constructor & Destructor Documentation

llvm::DIEInteger::DIEInteger ( uint64_t  I)
inlineexplicit

Definition at line 231 of file DIE.h.

Member Function Documentation

static dwarf::Form llvm::DIEInteger::BestForm ( bool  IsSigned,
uint64_t  Int 
)
inlinestatic

BestForm - Choose the best form for integer.

Definition at line 235 of file DIE.h.

References llvm::tgtok::Int.

Referenced by llvm::CompileUnit::addSInt(), and llvm::CompileUnit::addUInt().

static bool llvm::DIEInteger::classof ( const DIEValue I)
inlinestatic

Definition at line 260 of file DIE.h.

References llvm::DIEValue::getType(), and llvm::DIEValue::isInteger.

void DIEInteger::EmitValue ( AsmPrinter Asm,
dwarf::Form  Form 
) const
virtual
uint64_t llvm::DIEInteger::getValue ( ) const
inline

Definition at line 253 of file DIE.h.

Referenced by llvm::DwarfDebug::emitDIE().

void DIEInteger::print ( raw_ostream O) const
virtual

Implements llvm::DIEValue.

Definition at line 267 of file DIE.cpp.

References llvm::raw_ostream::write_hex().

unsigned DIEInteger::SizeOf ( AsmPrinter AP,
dwarf::Form  Form 
) const
virtual

SizeOf - Determine size of integer value in bytes.

Implements llvm::DIEValue.

Definition at line 244 of file DIE.cpp.

References llvm::AsmPrinter::getDataLayout(), llvm::DataLayout::getPointerSize(), llvm::MCAsmInfo::getSLEB128Size(), llvm::MCAsmInfo::getULEB128Size(), and llvm_unreachable.


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