LLVM 20.0.0git
|
#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 | |
PDBFile & | pdb () |
const PDBFile & | pdb () const |
object::COFFObjectFile & | obj () |
const object::COFFObjectFile & | obj () const |
MemoryBuffer & | unknown () |
const MemoryBuffer & | unknown () const |
StringRef | getFilePath () const |
bool | hasTypes () const |
bool | hasIds () const |
codeview::LazyRandomTypeCollection & | types () |
codeview::LazyRandomTypeCollection & | ids () |
iterator_range< SymbolGroupIterator > | symbol_groups () |
SymbolGroupIterator | symbol_groups_begin () |
SymbolGroupIterator | symbol_groups_end () |
bool | isPdb () const |
bool | isObj () const |
bool | isUnknown () const |
Static Public Member Functions | |
static Expected< InputFile > | open (StringRef Path, bool AllowUnknownFile=false) |
Definition at line 39 of file InputFile.h.
|
inline |
Definition at line 57 of file InputFile.h.
|
inline |
Definition at line 58 of file InputFile.h.
|
inline |
Definition at line 59 of file InputFile.h.
|
default |
|
default |
StringRef InputFile::getFilePath | ( | ) | const |
Definition at line 379 of file InputFile.cpp.
References assert(), llvm::MemoryBuffer::getBufferIdentifier(), llvm::object::Binary::getFileName(), llvm::pdb::PDBFile::getFilePath(), isObj(), isPdb(), isUnknown(), obj(), pdb(), and unknown().
bool InputFile::hasIds | ( | ) | const |
Definition at line 400 of file InputFile.cpp.
References llvm::pdb::PDBFile::hasPDBIpiStream(), isObj(), and pdb().
bool InputFile::hasTypes | ( | ) | const |
Definition at line 388 of file InputFile.cpp.
References llvm::pdb::PDBFile::hasPDBTpiStream(), isDebugTSection(), isPdb(), obj(), pdb(), and sections.
codeview::LazyRandomTypeCollection & InputFile::ids | ( | ) |
Definition at line 461 of file InputFile.cpp.
bool InputFile::isObj | ( | ) | const |
Definition at line 408 of file InputFile.cpp.
Referenced by getFilePath(), hasIds(), ids(), isMyCode(), and obj().
bool InputFile::isPdb | ( | ) | const |
Definition at line 406 of file InputFile.cpp.
Referenced by getFilePath(), llvm::pdb::SymbolGroup::getPdbModuleStream(), hasTypes(), and pdb().
bool InputFile::isUnknown | ( | ) | const |
Definition at line 412 of file InputFile.cpp.
Referenced by getFilePath(), and unknown().
object::COFFObjectFile & InputFile::obj | ( | ) |
Definition at line 359 of file InputFile.cpp.
References assert(), and isObj().
Referenced by getFilePath(), and hasTypes().
const object::COFFObjectFile & InputFile::obj | ( | ) | const |
Definition at line 364 of file InputFile.cpp.
Definition at line 301 of file InputFile.cpp.
References llvm::file_magic::coff_object, llvm::object::createBinary(), llvm::codeview::EC, llvm::sys::fs::exists(), llvm::formatv(), llvm::MemoryBuffer::getFile(), llvm::identify_magic(), llvm::inconvertibleErrorCode(), llvm::pdb::loadDataForPDB(), llvm::pdb::Native, llvm::pdb::Path, llvm::file_magic::pdb, and llvm::Expected< T >::takeError().
PDBFile & InputFile::pdb | ( | ) |
Definition at line 349 of file InputFile.cpp.
References assert(), and isPdb().
Referenced by getFilePath(), hasIds(), hasTypes(), and ids().
Definition at line 354 of file InputFile.cpp.
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().
SymbolGroupIterator InputFile::symbol_groups_begin | ( | ) |
Definition at line 476 of file InputFile.cpp.
Referenced by symbol_groups().
SymbolGroupIterator InputFile::symbol_groups_end | ( | ) |
Definition at line 480 of file InputFile.cpp.
Referenced by symbol_groups().
codeview::LazyRandomTypeCollection & InputFile::types | ( | ) |
Definition at line 457 of file InputFile.cpp.
Referenced by ids().
MemoryBuffer & InputFile::unknown | ( | ) |
Definition at line 369 of file InputFile.cpp.
References assert(), and isUnknown().
Referenced by getFilePath().
const MemoryBuffer & InputFile::unknown | ( | ) | const |
Definition at line 374 of file InputFile.cpp.
References assert(), and isUnknown().