LLVM  16.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::pdb::InputFile Class Reference

#include "llvm/DebugInfo/PDB/Native/InputFile.h"

Public Member Functions

 InputFile (PDBFile *Pdb)
 
 InputFile (object::COFFObjectFile *Obj)
 
 InputFile (MemoryBuffer *Buffer)
 
 ~InputFile ()
 
 InputFile (InputFile &&Other)=default
 
PDBFilepdb ()
 
const PDBFilepdb () const
 
object::COFFObjectFileobj ()
 
const object::COFFObjectFileobj () const
 
MemoryBufferunknown ()
 
const MemoryBufferunknown () const
 
StringRef getFilePath () const
 
bool hasTypes () const
 
bool hasIds () const
 
codeview::LazyRandomTypeCollectiontypes ()
 
codeview::LazyRandomTypeCollectionids ()
 
iterator_range< SymbolGroupIteratorsymbol_groups ()
 
SymbolGroupIterator symbol_groups_begin ()
 
SymbolGroupIterator symbol_groups_end ()
 
bool isPdb () const
 
bool isObj () const
 
bool isUnknown () const
 

Static Public Member Functions

static Expected< InputFileopen (StringRef Path, bool AllowUnknownFile=false)
 

Detailed Description

Definition at line 40 of file InputFile.h.

Constructor & Destructor Documentation

◆ InputFile() [1/4]

llvm::pdb::InputFile::InputFile ( PDBFile Pdb)
inline

Definition at line 58 of file InputFile.h.

◆ InputFile() [2/4]

llvm::pdb::InputFile::InputFile ( object::COFFObjectFile Obj)
inline

Definition at line 59 of file InputFile.h.

◆ InputFile() [3/4]

llvm::pdb::InputFile::InputFile ( MemoryBuffer Buffer)
inline

Definition at line 60 of file InputFile.h.

◆ ~InputFile()

InputFile::~InputFile ( )
default

◆ InputFile() [4/4]

llvm::pdb::InputFile::InputFile ( InputFile &&  Other)
default

Member Function Documentation

◆ getFilePath()

StringRef InputFile::getFilePath ( ) const

◆ hasIds()

bool InputFile::hasIds ( ) const

Definition at line 399 of file InputFile.cpp.

References llvm::pdb::PDBFile::hasPDBIpiStream(), isObj(), and pdb().

◆ hasTypes()

bool InputFile::hasTypes ( ) const

◆ ids()

codeview::LazyRandomTypeCollection & InputFile::ids ( )

Definition at line 460 of file InputFile.cpp.

References isObj(), pdb(), and types().

◆ isObj()

bool InputFile::isObj ( ) const

Definition at line 407 of file InputFile.cpp.

Referenced by getFilePath(), hasIds(), ids(), isMyCode(), and obj().

◆ isPdb()

bool InputFile::isPdb ( ) const

◆ isUnknown()

bool InputFile::isUnknown ( ) const

Definition at line 411 of file InputFile.cpp.

Referenced by getFilePath(), and unknown().

◆ obj() [1/2]

const object::COFFObjectFile & InputFile::obj ( )

Definition at line 358 of file InputFile.cpp.

References assert(), and isObj().

Referenced by getFilePath(), and hasTypes().

◆ obj() [2/2]

const object::COFFObjectFile& llvm::pdb::InputFile::obj ( ) const

◆ open()

Expected< InputFile > InputFile::open ( StringRef  Path,
bool  AllowUnknownFile = false 
)
static

◆ pdb() [1/2]

const PDBFile & InputFile::pdb ( )

Definition at line 348 of file InputFile.cpp.

References assert(), and isPdb().

Referenced by getFilePath(), hasIds(), hasTypes(), and ids().

◆ pdb() [2/2]

const PDBFile& llvm::pdb::InputFile::pdb ( ) const

◆ symbol_groups()

iterator_range< SymbolGroupIterator > InputFile::symbol_groups ( )

Definition at line 470 of file InputFile.cpp.

References symbol_groups_begin(), and symbol_groups_end().

Referenced by llvm::pdb::iterateSymbolGroups().

◆ symbol_groups_begin()

SymbolGroupIterator InputFile::symbol_groups_begin ( )

Definition at line 475 of file InputFile.cpp.

Referenced by symbol_groups().

◆ symbol_groups_end()

SymbolGroupIterator InputFile::symbol_groups_end ( )

Definition at line 479 of file InputFile.cpp.

Referenced by symbol_groups().

◆ types()

codeview::LazyRandomTypeCollection & InputFile::types ( )

Definition at line 456 of file InputFile.cpp.

Referenced by ids().

◆ unknown() [1/2]

const MemoryBuffer & InputFile::unknown ( )

Definition at line 368 of file InputFile.cpp.

References assert(), and isUnknown().

Referenced by getFilePath().

◆ unknown() [2/2]

const MemoryBuffer& llvm::pdb::InputFile::unknown ( ) const

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