Commit f89b2771 authored by Jason Hiser's avatar Jason Hiser 🚜

renamed Transform to Transform_t for sdk update

parent e63aaf6e
Pipeline #2605 passed with stages
in 13 minutes and 13 seconds
......@@ -39,7 +39,7 @@ using namespace InitStack;
*/
InitStack_t::InitStack_t(FileIR_t *p_variantIR, const string& p_functionsFilename, int p_initValue, bool p_verbose)
:
Transform(p_variantIR), // initialize the Transform class so things like insertAssembly and getFileIR() can be used
Transform_t(p_variantIR), // initialize the Transform class so things like insertAssembly and getFileIR() can be used
m_initValue(p_initValue), // member variable inits, these will vary depending on your transform's objectives
m_verbose(p_verbose),
m_numTransformed(0)
......
......@@ -37,7 +37,10 @@ namespace InitStack
//
// This class handles initializing stack frames to a constant value
//
class InitStack_t : public Transform
// Note: Using private inheritence here for "principle of minimum access",
// but you can choose what's best for your needs.
//
class InitStack_t : private Transform_t
{
public:
// construct an object
......
......@@ -27,7 +27,7 @@ using namespace std;
// constructor
KillDeads::KillDeads(FileIR_t *p_variantIR)
:
Transform(p_variantIR) // init transform class for insertAssembly and getFileIR
Transform_t(p_variantIR) // init transform class for insertAssembly and getFileIR
{
}
......
......@@ -33,7 +33,7 @@
// Note: This elides creating a new namespace or "using" the IRDB_SDK namespace,
// so references to the IRDB_SDK classes must be explicitly scoped.
//
class KillDeads : public IRDB_SDK::Transform
class KillDeads : protected IRDB_SDK::Transform_t
{
public:
KillDeads(IRDB_SDK::FileIR_t *p_variantIR);
......
......@@ -34,6 +34,8 @@ using namespace IRDB_SDK;
//
// For convenience, since this class is simple and shouldn't be used elsewhere, we just implement the class in the .cpp file
//
// Note: Public inheritence here is required for Thanos integration
//
class KillDeadsDriver_t : public IRDB_SDK::TransformStep_t
{
public:
......
......@@ -54,7 +54,7 @@ static Relocation_t* findRelocation(Instruction_t* insn, const string& type)
//
StackStamp_t::StackStamp_t(FileIR_t *p_variantIR, StampValue_t sv, bool p_verbose)
:
Transform(p_variantIR),
Transform_t(p_variantIR),
stamp_value(sv),
verbose(p_verbose)
{
......
......@@ -39,7 +39,7 @@ namespace Stamper
// a class to transform an IR by stamping (xoring) return addresses
class StackStamp_t : public Transform
class StackStamp_t : public Transform_t
{
public:
StackStamp_t(FileIR_t *p_variantIR, StampValue_t sv, bool p_verbose);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment