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

Byte stream of .debug_loc entries. More...

#include "CodeGen/AsmPrinter/DebugLocStream.h"


struct  Entry
class  EntryBuilder
 Builder for DebugLocStream entries. More...
struct  List
class  ListBuilder
 Builder for DebugLocStream lists. More...

Public Member Functions

 DebugLocStream (bool GenerateComments)
size_t getNumLists () const
const ListgetList (size_t LI) const
ArrayRef< ListgetLists () const
MCSymbolgetSym () const
void setSym (MCSymbol *Sym)
BufferByteStreamer getStreamer ()
ArrayRef< EntrygetEntries (const List &L) const
ArrayRef< chargetBytes (const Entry &E) const
ArrayRef< std::string > getComments (const Entry &E) const

Detailed Description

Byte stream of .debug_loc entries.

Stores a unified stream of .debug_loc entries. There's List for each variable/inlined-at pair, and an Entry for each DebugLocEntry.

FIXME: Do we need all these temp symbols? FIXME: Why not output directly to the output stream?

Definition at line 31 of file DebugLocStream.h.

Constructor & Destructor Documentation

◆ DebugLocStream()

llvm::DebugLocStream::DebugLocStream ( bool  GenerateComments)

Definition at line 59 of file DebugLocStream.h.

Member Function Documentation

◆ getBytes()

ArrayRef<char> llvm::DebugLocStream::getBytes ( const Entry E) const

◆ getComments()

ArrayRef<std::string> llvm::DebugLocStream::getComments ( const Entry E) const

◆ getEntries()

ArrayRef<Entry> llvm::DebugLocStream::getEntries ( const List L) const

Definition at line 110 of file DebugLocStream.h.

References llvm::DebugLocStream::List::EntryOffset, and llvm::makeArrayRef().

Referenced by emitLocList().

◆ getList()

const List& llvm::DebugLocStream::getList ( size_t  LI) const

Definition at line 61 of file DebugLocStream.h.

Referenced by llvm::DIELocList::emitValue().

◆ getLists()

ArrayRef<List> llvm::DebugLocStream::getLists ( ) const

Definition at line 62 of file DebugLocStream.h.

◆ getNumLists()

size_t llvm::DebugLocStream::getNumLists ( ) const

◆ getStreamer()

BufferByteStreamer llvm::DebugLocStream::getStreamer ( )

Definition at line 106 of file DebugLocStream.h.

Referenced by llvm::DebugLocStream::EntryBuilder::getStreamer().

◆ getSym()

MCSymbol* llvm::DebugLocStream::getSym ( ) const

Definition at line 63 of file DebugLocStream.h.

◆ setSym()

void llvm::DebugLocStream::setSym ( MCSymbol Sym)

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