Public Member Functions | Static Public Member Functions | List of all members
Rose::BinaryAnalysis::Partitioner2::ModulesX86::SwitchSuccessors Class Reference


Basic block callback to detect "switch" statements.

Examines the instructions of a basic block to determine if they are from a C "switch"-like statement and attempts to find the "case" labels, adding them as successors to this basic block.

Definition at line 95 of file ModulesX86.h.

#include <ModulesX86.h>

Inheritance diagram for Rose::BinaryAnalysis::Partitioner2::ModulesX86::SwitchSuccessors:
Inheritance graph
Collaboration diagram for Rose::BinaryAnalysis::Partitioner2::ModulesX86::SwitchSuccessors:
Collaboration graph

Public Member Functions

virtual bool operator() (bool chain, const Args &) ROSE_OVERRIDE
 Callback method. More...
- Public Member Functions inherited from Sawyer::SharedObject
 SharedObject ()
 Default constructor. More...
 SharedObject (const SharedObject &)
 Copy constructor. More...
virtual ~SharedObject ()
 Virtual destructor. More...
SharedObjectoperator= (const SharedObject &)
 Assignment. More...

Static Public Member Functions

static Ptr instance ()
 Allocating constructor. More...

Additional Inherited Members

- Public Types inherited from Rose::BinaryAnalysis::Partitioner2::BasicBlockCallback
enum  Termination {
 Whether to terminate a basic block. More...
typedef Sawyer::SharedPointer< BasicBlockCallbackPtr
 Shared-ownership pointer to a BasicBlockCallback. More...

Member Function Documentation

static Ptr Rose::BinaryAnalysis::Partitioner2::ModulesX86::SwitchSuccessors::instance ( )

Allocating constructor.

Definition at line 97 of file ModulesX86.h.

virtual bool Rose::BinaryAnalysis::Partitioner2::ModulesX86::SwitchSuccessors::operator() ( bool  chain,
const Args  

Callback method.

This is the method invoked for the callback. The chain argument is the return value from the previous callback in the list (true for the first callback). The successor callbacks use chain to indicate whether subsequent callbacks should do anything.

Implements Rose::BinaryAnalysis::Partitioner2::BasicBlockCallback.

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