retdec
Static Public Member Functions | List of all members
retdec::llvmir2hll::LibraryFuncsRemover Class Reference

Removes defined functions which are from some standard library whose header file has to be included because of some function declarations. More...

#include <library_funcs_remover.h>

Inheritance diagram for retdec::llvmir2hll::LibraryFuncsRemover:
Inheritance graph
[legend]
Collaboration diagram for retdec::llvmir2hll::LibraryFuncsRemover:
Collaboration graph
[legend]

Static Public Member Functions

static FuncVector removeFuncs (ShPtr< Module > module)
 Removes defined functions in module which are from some standard library whose header file has to be included because of some function declaration. More...
 

Additional Inherited Members

- Private Member Functions inherited from retdec::utils::NonCopyable
 NonCopyable (const NonCopyable &)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 
 NonCopyable ()=default
 
 ~NonCopyable ()=default
 

Detailed Description

Removes defined functions which are from some standard library whose header file has to be included because of some function declarations.

For more information, see the description of removeFuncs().

This class implements the "static helper" (or "library") design pattern (it has just static functions and no public instances can be created).

Member Function Documentation

◆ removeFuncs()

FuncVector retdec::llvmir2hll::LibraryFuncsRemover::removeFuncs ( ShPtr< Module module)
static

Removes defined functions in module which are from some standard library whose header file has to be included because of some function declaration.

Parameters
[in,out]moduleModule in which the functions are to be removed.
Returns
Functions that were turned into declarations.

Function definitions that are removed in this way are turned into declarations. In this way, we do not loose their prototypes (they are needed, e.g., in CHLLWriter).

Preconditions
  • module is non-null

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