ff7_world_codegen.cpp 797 B

1234567891011121314151617181920212223242526272829303132333435
  1. #include "ff7_world_codegen.h"
  2. #include "ff7_world_engine.h"
  3. std::string FF7::FF7WorldCodeGenerator::ConstructFuncSignature(const Function&)
  4. {
  5. return "";
  6. }
  7. const InstPtr FF7::FF7WorldCodeGenerator::findFirstCall()
  8. {
  9. ConstInstIterator it = mCurGroup->_start;
  10. do
  11. {
  12. if ((*it)->isFuncCall() || (*it)->isKernelCall())
  13. return *it;
  14. } while (it++ != mCurGroup->_end);
  15. return *mCurGroup->_start;
  16. }
  17. const InstPtr FF7::FF7WorldCodeGenerator::findLastCall()
  18. {
  19. ConstInstIterator it = mCurGroup->_end;
  20. do {
  21. if ((*it)->isFuncCall() || (*it)->isKernelCall())
  22. return *it;
  23. } while (it-- != mCurGroup->_start);
  24. return *mCurGroup->_end;
  25. }
  26. void FF7::FF7WorldCodeGenerator::processSpecialMetadata(const InstPtr inst, char, int)
  27. {
  28. }