LLVM 20.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 39 of file InputFile.h.

Constructor & Destructor Documentation

◆ InputFile() [1/4]

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

Definition at line 57 of file InputFile.h.

◆ InputFile() [2/4]

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

Definition at line 58 of file InputFile.h.

◆ InputFile() [3/4]

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

Definition at line 59 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 400 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 461 of file InputFile.cpp.

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

◆ isObj()

bool InputFile::isObj ( ) const

Definition at line 408 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 412 of file InputFile.cpp.

Referenced by getFilePath(), and unknown().

◆ obj() [1/2]

object::COFFObjectFile & InputFile::obj ( )

Definition at line 359 of file InputFile.cpp.

References assert(), and isObj().

Referenced by getFilePath(), and hasTypes().

◆ obj() [2/2]

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

Definition at line 364 of file InputFile.cpp.

References assert(), and isObj().

◆ open()

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

◆ pdb() [1/2]

PDBFile & InputFile::pdb ( )

Definition at line 349 of file InputFile.cpp.

References assert(), and isPdb().

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

◆ pdb() [2/2]

const PDBFile & InputFile::pdb ( ) const

Definition at line 354 of file InputFile.cpp.

References assert(), and isPdb().

◆ symbol_groups()

iterator_range< SymbolGroupIterator > InputFile::symbol_groups ( )

Definition at line 471 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 476 of file InputFile.cpp.

Referenced by symbol_groups().

◆ symbol_groups_end()

SymbolGroupIterator InputFile::symbol_groups_end ( )

Definition at line 480 of file InputFile.cpp.

Referenced by symbol_groups().

◆ types()

codeview::LazyRandomTypeCollection & InputFile::types ( )

Definition at line 457 of file InputFile.cpp.

Referenced by ids().

◆ unknown() [1/2]

MemoryBuffer & InputFile::unknown ( )

Definition at line 369 of file InputFile.cpp.

References assert(), and isUnknown().

Referenced by getFilePath().

◆ unknown() [2/2]

const MemoryBuffer & InputFile::unknown ( ) const

Definition at line 374 of file InputFile.cpp.

References assert(), and isUnknown().


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