Merge remote-tracking branch 'origin/GP-3680_DecompilerScalars'

(Closes #5286)
This commit is contained in:
Ryan Kurtz 2023-09-14 10:59:06 -04:00
commit ad13db789d
15 changed files with 415 additions and 138 deletions

View file

@ -1266,6 +1266,14 @@ void BlockGraph::printRaw(ostream &s) const
(*iter)->printRaw(s);
}
PcodeOp *BlockGraph::firstOp(void) const
{
if (getSize() == 0)
return (PcodeOp *)0;
return getBlock(0)->firstOp();
}
FlowBlock *BlockGraph::nextFlowAfter(const FlowBlock *bl) const
{
@ -2261,6 +2269,13 @@ Address BlockBasic::getStop(void) const
return range->getLastAddr();
}
PcodeOp *BlockBasic::firstOp(void) const
{
if (op.empty()) return (PcodeOp *)0;
return (PcodeOp *)op.front();
}
PcodeOp *BlockBasic::lastOp(void) const
{