LIEF: Library to Instrument Executable Formats Version 0.17.0
|
This class represents a CompilationUnit (or Module) in a PDB file. More...
#include <CompilationUnit.hpp>
Classes | |
class | Iterator |
Public Types | |
using | sources_iterator = iterator_range<std::vector<std::string>::const_iterator> |
Iterator over the sources file (std::string). | |
using | function_iterator = iterator_range<Function::Iterator> |
Public Member Functions | |
CompilationUnit (std::unique_ptr< details::CompilationUnit > impl) | |
~CompilationUnit () | |
std::string | module_name () const |
Name (or path) to the COFF object (.obj) associated with this compilation unit (e.g. e:\obj.amd64fre\minkernel\ntos\hvl\mp\objfre\amd64\hvlp.obj). | |
std::string | object_filename () const |
Name of path to the original binary object (COFF, Archive) in which the compilation unit was located before being linked. e.g. e:\obj.amd64fre\minkernel\ntos\hvl\mp\objfre\amd64\hvl.lib. | |
sources_iterator | sources () const |
Iterator over the sources files that compose this compilation unit. These files also include headers (.h, .hpp, ...). | |
function_iterator | functions () const |
Return an iterator over the function defined in this compilation unit. If the PDB does not contain or has an empty DBI stream, it returns an empty iterator. | |
std::unique_ptr< BuildMetadata > | build_metadata () const |
Return build metadata such as the version of the compiler or the original source language of this compilation unit. | |
std::string | to_string () const |
This class represents a CompilationUnit (or Module) in a PDB file.
using LIEF::pdb::CompilationUnit::sources_iterator = iterator_range<std::vector<std::string>::const_iterator> |
Iterator over the sources file (std::string).
LIEF::pdb::CompilationUnit::CompilationUnit | ( | std::unique_ptr< details::CompilationUnit > | impl | ) |
Referenced by operator<<.
LIEF::pdb::CompilationUnit::~CompilationUnit | ( | ) |
std::unique_ptr< BuildMetadata > LIEF::pdb::CompilationUnit::build_metadata | ( | ) | const |
Return build metadata such as the version of the compiler or the original source language of this compilation unit.
function_iterator LIEF::pdb::CompilationUnit::functions | ( | ) | const |
Return an iterator over the function defined in this compilation unit. If the PDB does not contain or has an empty DBI stream, it returns an empty iterator.
std::string LIEF::pdb::CompilationUnit::module_name | ( | ) | const |
Name (or path) to the COFF object (.obj) associated with this compilation unit (e.g. e:\obj.amd64fre\minkernel\ntos\hvl\mp\objfre\amd64\hvlp.obj).
std::string LIEF::pdb::CompilationUnit::object_filename | ( | ) | const |
Name of path to the original binary object (COFF, Archive) in which the compilation unit was located before being linked. e.g. e:\obj.amd64fre\minkernel\ntos\hvl\mp\objfre\amd64\hvl.lib.
sources_iterator LIEF::pdb::CompilationUnit::sources | ( | ) | const |
Iterator over the sources files that compose this compilation unit. These files also include headers (.h, .hpp, ...).
std::string LIEF::pdb::CompilationUnit::to_string | ( | ) | const |
References LIEF_API.
Referenced by operator<<.