Refactoring SymbolInfo/FunctionInfo/Function into Symbol/Function.

This commit is contained in:
Ben Vanik
2015-08-05 21:50:02 -07:00
parent 48d6e6becf
commit eaa1a8ee3a
54 changed files with 715 additions and 1027 deletions

View File

@@ -13,7 +13,7 @@
#include <vector>
#include "xenia/cpu/debug_info.h"
#include "xenia/cpu/symbol_info.h"
#include "xenia/cpu/function.h"
namespace xe {
namespace cpu {
@@ -21,25 +21,24 @@ namespace frontend {
class PPCFrontend;
typedef struct BlockInfo_t {
struct BlockInfo {
uint32_t start_address;
uint32_t end_address;
} BlockInfo;
};
class PPCScanner {
public:
PPCScanner(PPCFrontend* frontend);
~PPCScanner();
bool Scan(FunctionInfo* symbol_info, DebugInfo* debug_info);
bool Scan(GuestFunction* function, DebugInfo* debug_info);
std::vector<BlockInfo> FindBlocks(FunctionInfo* symbol_info);
std::vector<BlockInfo> FindBlocks(GuestFunction* function);
private:
bool IsRestGprLr(uint32_t address);
private:
PPCFrontend* frontend_;
PPCFrontend* frontend_ = nullptr;
};
} // namespace frontend