More logic operator replacements.
Use Qt string classes.
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#include "dcc.h"
|
||||
#include "msvc_fixes.h"
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
using namespace std;
|
||||
|
||||
/*****************************************************************************
|
||||
@@ -134,7 +136,8 @@ bool Idiom18::match(iICODE picode)
|
||||
/* not supported yet */
|
||||
ICODE &ic(*picode);
|
||||
const Function *my_proc(ic.getParent()->getParent());
|
||||
printf("Unsupported idiom18 type at %x in %s:%x : indexed\n",ic.loc_ip,my_proc->name.c_str(),my_proc->procEntry);
|
||||
qWarning() << "Unsupported idiom18 type at"<< QString::number(ic.loc_ip,16)
|
||||
<< "in"<< my_proc->name <<':'<< QString::number(my_proc->procEntry,16) << "- indexed";
|
||||
}
|
||||
|
||||
switch(m_idiom_type)
|
||||
|
||||
@@ -64,13 +64,13 @@ bool Idiom2::match(iICODE pIcode)
|
||||
if(nicode == m_end)
|
||||
return false;
|
||||
|
||||
if (nicode->ll()->match(iPOP,rBP) and ! (nicode->ll()->testFlags(I | TARGET | CASE)) )
|
||||
if (nicode->ll()->match(iPOP,rBP) and not (nicode->ll()->testFlags(I | TARGET | CASE)) )
|
||||
{
|
||||
m_icodes.push_back(nicode++); // Matched POP BP
|
||||
|
||||
/* Match RET(F) */
|
||||
if ( nicode != m_end and
|
||||
!(nicode->ll()->testFlags(I | TARGET | CASE)) and
|
||||
not (nicode->ll()->testFlags(I | TARGET | CASE)) and
|
||||
(nicode->ll()->match(iRET) or nicode->ll()->match(iRETF))
|
||||
)
|
||||
{
|
||||
@@ -140,7 +140,7 @@ bool Idiom4::match(iICODE pIcode)
|
||||
}
|
||||
int Idiom4::action()
|
||||
{
|
||||
if( ! m_icodes.empty()) // if not an empty RET[F] N
|
||||
if( not m_icodes.empty()) // if not an empty RET[F] N
|
||||
{
|
||||
for(size_t idx=0; idx<m_icodes.size()-1; ++idx) // don't invalidate last entry
|
||||
m_icodes[idx]->invalidate();
|
||||
|
||||
@@ -122,7 +122,7 @@ bool Idiom1::match(iICODE picode)
|
||||
m_icodes.push_back(picode++);
|
||||
|
||||
}
|
||||
return !m_icodes.empty();
|
||||
return not m_icodes.empty();
|
||||
}
|
||||
int Idiom1::action()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user