ROSE 0.11.145.147
ModulesMips.h
1#ifndef ROSE_BinaryAnalysis_Partitioner2_ModulesMips_H
2#define ROSE_BinaryAnalysis_Partitioner2_ModulesMips_H
3#include <featureTests.h>
4#ifdef ROSE_ENABLE_BINARY_ANALYSIS
5
6#include <Rose/BinaryAnalysis/Partitioner2/Modules.h>
7
8namespace Rose {
9namespace BinaryAnalysis {
10namespace Partitioner2 {
11
13namespace ModulesMips {
14
17protected:
18 FunctionPtr function_;
19protected:
21public:
23
24public:
25 static Ptr instance();
26 virtual std::vector<FunctionPtr> functions() const override;
27 virtual bool match(const PartitionerConstPtr&, rose_addr_t anchor) override;
28};
29
30} // namespace
31} // namespace
32} // namespace
33} // namespace
34
35#endif
36#endif
Base class for matching function prologues.
Definition Modules.h:108
Matches a MIPS function prologue that's a return followed by ADDIU instruction.
Definition ModulesMips.h:16
virtual bool match(const PartitionerConstPtr &, rose_addr_t anchor) override
Attempt to match an instruction pattern.
virtual std::vector< FunctionPtr > functions() const override
Returns the function(s) for the previous successful match.
The ROSE library.