diff --git a/include/interfaces/abstract/STARSProgram.h b/include/interfaces/abstract/STARSProgram.h index 585f82b28d9f346a749ac777588e110623b3b4ae..06824bad491d5c84ee92d522185a17f0b9196071 100644 --- a/include/interfaces/abstract/STARSProgram.h +++ b/include/interfaces/abstract/STARSProgram.h @@ -60,8 +60,8 @@ class STARS_Program_t std::size_t GetFuncBoundsSize(void) const { return FuncBounds.size(); }; // Set (mutator) methods - virtual void Set32BitBinary(void) = 0; // Set internal state to handle a 32-bit binary - virtual void Set64BitBinary(void) = 0; // Set internal state to handle a 64-bit binary + void Set32BitBinary(void) { SetBitwidth32(); }; // Set internal state to handle a 32-bit binary + void Set64BitBinary(void) { SetBitwidth64(); }; // Set internal state to handle a 64-bit binary void SetRootFileName(std::string NewName) { RootFileName = NewName; AnnotFileName = NewName + ".annot"; InfoAnnotFileName = NewName + ".infoannot"; }; void IncrementOptCount(std::size_t OptCategory) { ++OptCount[OptCategory]; }; // increment optimizing annotation count void IncrementAnnotationCount(std::size_t OptCategory) { ++AnnotationCount[OptCategory]; }; // increment total annotation count diff --git a/include/interfaces/idapro/STARSProgram.h b/include/interfaces/idapro/STARSProgram.h index 834cddc38aaaba2f953e1b5b5cf729f25e764071..dccb0d331ff3489f4bfa79f2af295f335d9f094b 100644 --- a/include/interfaces/idapro/STARSProgram.h +++ b/include/interfaces/idapro/STARSProgram.h @@ -25,8 +25,6 @@ public: // Get (accessor) methods // Set (mutator) methods - void Set32BitBinary(void); // Set internal state to handle a 32-bit binary - void Set64BitBinary(void); // Set internal state to handle a 64-bit binary // Query methods diff --git a/src/interfaces/idapro/STARSIDAProgram.cpp b/src/interfaces/idapro/STARSIDAProgram.cpp index f58affbc1b36c371ad932165c4152acf98c33aa3..5457b4d6b92b9dd0c9d9e8a9d8727836460709c8 100644 --- a/src/interfaces/idapro/STARSIDAProgram.cpp +++ b/src/interfaces/idapro/STARSIDAProgram.cpp @@ -33,18 +33,6 @@ using namespace std; // Set to zero until we can do more precise analyses of indexed accesses. #define SMP_DETECT_INDEXED_ACCESSES 0 -// Set internal state to handle a 32-bit binary -void STARS_IDA_Program_t::Set32BitBinary(void) { - STARS_Program_t::SetBitwidth32(); - return; -} - -// Set internal state to handle a 64-bit binary -void STARS_IDA_Program_t::Set64BitBinary(void) { - STARS_Program_t::SetBitwidth64(); - return; -} - // Set flags, take actions based on code size. void STARS_IDA_Program_t::ReportTotalCodeSize(unsigned long long TotalCodeSize) { this->SetTotalCodeSize(TotalCodeSize); diff --git a/src/interfaces/irdb/STARSIRDBProgram.cpp b/src/interfaces/irdb/STARSIRDBProgram.cpp index 3c0304bd8b001c10b83e812c7602ba4e3ac61832..681c5d5da0403053875892d21da6ac2c396e43f4 100644 --- a/src/interfaces/irdb/STARSIRDBProgram.cpp +++ b/src/interfaces/irdb/STARSIRDBProgram.cpp @@ -14,18 +14,6 @@ using namespace std; #define SMP_DEBUG 1 -// Set internal state to handle a 32-bit binary -void STARS_IRDB_Program_t::Set32BitBinary(void) { - STARS_Program_t::SetBitwidth32(); - return; -} - -// Set internal state to handle a 64-bit binary -void STARS_IRDB_Program_t::Set64BitBinary(void) { - STARS_Program_t::SetBitwidth64(); - return; -} - // Set flags, take actions based on code size. void STARS_IRDB_Program_t::ReportTotalCodeSize(unsigned long long TotalCodeSize) { this->SetTotalCodeSize(TotalCodeSize);