Fixed warning about initialisation order. Also made code layout consistent within this file.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@350 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Maarten ter Huurne 2008-08-27 11:33:45 +00:00
parent bbeca155de
commit c0da275501
1 changed files with 19 additions and 19 deletions

View File

@ -23,10 +23,10 @@
struct SCall struct SCall
{ {
SCall(u32 a, u32 b) : SCall(u32 a, u32 b) :
function(a), function(a),
callAddress(b) callAddress(b)
{} {}
u32 function; u32 function;
u32 callAddress; u32 callAddress;
}; };
@ -38,21 +38,21 @@ struct Symbol
SYMBOL_DATA = 1, SYMBOL_DATA = 1,
}; };
Symbol() : Symbol() :
hash(0), hash(0),
address(0), address(0),
flags(0), flags(0),
size(0), size(0),
numCalls(0), numCalls(0),
analyzed(0), type(SYMBOL_FUNCTION),
type(SYMBOL_FUNCTION) analyzed(0)
{} {}
~Symbol() ~Symbol()
{ {
callers.clear(); callers.clear();
calls.clear(); calls.clear();
} }
std::string name; std::string name;
std::vector<SCall> callers; //addresses of functions that call this function std::vector<SCall> callers; //addresses of functions that call this function
@ -76,7 +76,7 @@ enum
FFLAG_EVIL=(1<<3), FFLAG_EVIL=(1<<3),
FFLAG_RFI=(1<<4), FFLAG_RFI=(1<<4),
FFLAG_STRAIGHT=(1<<5) FFLAG_STRAIGHT=(1<<5)
}; };
// This has functionality overlapping Debugger_Symbolmap. Should merge that stuff in here later. // This has functionality overlapping Debugger_Symbolmap. Should merge that stuff in here later.