#include <fileimage.h>
|
| FileImage (llvm::Module *m, const std::string &path, Config *config) |
|
| FileImage (llvm::Module *m, const std::shared_ptr< retdec::fileformat::FileFormat > &ff, Config *config) |
|
| FileImage (llvm::Module *m, std::unique_ptr< retdec::loader::Image > img, Config *config) |
|
void | initRtti (Config *config) |
|
llvm::ConstantInt * | getConstantInt (llvm::IntegerType *t, retdec::common::Address addr) |
|
llvm::ConstantInt * | getConstantDefault (retdec::common::Address addr) |
|
llvm::Constant * | getConstantHalf (retdec::common::Address addr) |
|
llvm::Constant * | getConstantFloat (retdec::common::Address addr) |
|
llvm::Constant * | getConstantDouble (retdec::common::Address addr) |
|
llvm::Constant * | getConstantLongDouble (retdec::common::Address addr) |
|
llvm::Constant * | getConstantCharPointer (retdec::common::Address addr) |
|
llvm::Constant * | getConstantCharArrayNice (retdec::common::Address addr) |
|
llvm::Constant * | getConstantPointer (llvm::PointerType *type, retdec::common::Address addr) |
|
llvm::Constant * | getConstantStruct (llvm::StructType *type, retdec::common::Address addr) |
|
llvm::Constant * | getConstantArray (llvm::ArrayType *type, retdec::common::Address addr) |
|
llvm::Constant * | getConstant (llvm::Type *type, retdec::common::Address addr=retdec::common::Address::Undefined, bool wideString=false) |
|
llvm::Constant * | getConstant (Config *config, DebugFormat *dbgf=nullptr, retdec::common::Address addr=retdec::common::Address::Undefined) |
|
bool | isImportTerminating (const fileformat::ImportTable *impTbl, const fileformat::Import *imp) const |
|
retdec::loader::Image * | getImage () const |
|
auto & | getSegments () const |
|
retdec::fileformat::FileFormat * | getFileFormat () const |
|
const retdec::rtti_finder::RttiFinder & | getRtti () const |
|
◆ FileImage() [1/3]
retdec::bin2llvmir::FileImage::FileImage |
( |
llvm::Module * |
m, |
|
|
const std::string & |
path, |
|
|
Config * |
config |
|
) |
| |
◆ FileImage() [2/3]
◆ FileImage() [3/3]
◆ getConstant() [1/2]
Get constant from the given address addr. The type is unknown. If there is a constant of recognizable type on the address, then constant of this type is created. Otherwise, default integer constant is created. The recognizable types are:
- ASCII string.
- ASCII string encoded as wide string.
- Pointer to global variable.
- Array of pointers to global variables.
- Parameters
-
config | Config associated with module. |
dbgf | Debug file. |
addr | Address of the constant in the objf. |
- Returns
- Constant on the given address, or
nullptr
.
◆ getConstant() [2/2]
Get constant of the given type. If objf and addr are specified, constant is initialized with an actual value on the provided address in object file. Otherwise nullptr
is returned – it can still be used to construct global variable with undefined value.
- Parameters
-
type | Type of the constant. |
addr | Address of the constant in the objf. |
wideString | Is type a wide string? |
- Returns
- Constant of the given type and data, or
nullptr
.
- Note
- Right now, this can create only constants of simple or array types. If unhandled type (e.g. structure, function pointer) is provided,
nullptr
is returned.
◆ getConstantArray()
llvm::Constant * retdec::bin2llvmir::FileImage::getConstantArray |
( |
llvm::ArrayType * |
type, |
|
|
retdec::common::Address |
addr |
|
) |
| |
◆ getConstantCharArrayNice()
◆ getConstantCharPointer()
◆ getConstantDefault()
◆ getConstantDouble()
◆ getConstantFloat()
◆ getConstantHalf()
◆ getConstantInt()
ConstantInt * retdec::bin2llvmir::FileImage::getConstantInt |
( |
llvm::IntegerType * |
t, |
|
|
retdec::common::Address |
addr |
|
) |
| |
◆ getConstantLongDouble()
◆ getConstantPointer()
llvm::Constant * retdec::bin2llvmir::FileImage::getConstantPointer |
( |
llvm::PointerType * |
type, |
|
|
retdec::common::Address |
addr |
|
) |
| |
◆ getConstantStruct()
llvm::Constant * retdec::bin2llvmir::FileImage::getConstantStruct |
( |
llvm::StructType * |
type, |
|
|
retdec::common::Address |
addr |
|
) |
| |
◆ getFileFormat()
◆ getImage()
◆ getRtti()
◆ getSegments()
auto& retdec::bin2llvmir::FileImage::getSegments |
( |
| ) |
const |
|
inline |
◆ initRtti()
void retdec::bin2llvmir::FileImage::initRtti |
( |
Config * |
config | ) |
|
◆ isImportTerminating()
◆ _image
◆ _module
llvm::Module* retdec::bin2llvmir::FileImage::_module = nullptr |
|
private |
◆ _rtti
The documentation for this class was generated from the following files:
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/include/retdec/bin2llvmir/providers/fileimage.h
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/bin2llvmir/providers/fileimage.cpp