Fix the warnings introduced

llvm-svn: 213643
This commit is contained in:
Deepak Panickal 2014-07-22 11:59:11 +00:00
parent 723c81ff80
commit d4f3f94e6a
2 changed files with 7 additions and 23 deletions

View File

@ -244,7 +244,7 @@ ABISysV_hexagon::PrepareTrivialCall ( Thread &thread,
lldb::ProcessSP proc = thread.GetProcess( );
// push host data onto target
for ( int i = 0; i < args.size( ); i++ )
for ( size_t i = 0; i < args.size( ); i++ )
{
const ABI::CallArgument &arg = args[i];
// skip over target values
@ -269,7 +269,7 @@ ABISysV_hexagon::PrepareTrivialCall ( Thread &thread,
#if HEX_ABI_DEBUG
// print the original stack pointer
printf( "sp : %04x \n", sp );
printf( "sp : %04lx \n", sp );
#endif
// make sure number of parameters matches prototype
@ -296,8 +296,6 @@ ABISysV_hexagon::PrepareTrivialCall ( Thread &thread,
// pass arguments that are passed via registers
for ( int i = 0; i < nRegArgs; i++ )
{
// get this parameter type
llvm::Type *argType = prototype.getFunctionParamType( i );
// get the parameter as a u32
uint32_t param = (uint32_t)args[i].value;
// write argument into register
@ -314,7 +312,7 @@ ABISysV_hexagon::PrepareTrivialCall ( Thread &thread,
sp -= 4;
// arguments that are passed on the stack
for ( int i = nRegArgs, offs=0; i < args.size( ); i++ )
for ( size_t i = nRegArgs, offs=0; i < args.size( ); i++ )
{
// get the parameter as a u32
uint32_t param = (uint32_t)args[i].value;
@ -339,7 +337,7 @@ ABISysV_hexagon::PrepareTrivialCall ( Thread &thread,
uint32_t data = 0;
lldb::addr_t addr = sp + i * 4;
proc->ReadMemory( addr, (void*)&data, sizeof( data ), error );
printf( "\n0x%04x 0x%08x ", addr, data );
printf( "\n0x%04lx 0x%08x ", addr, data );
if ( i == 0 ) printf( "<<-- sp" );
}
printf( "\n" );
@ -348,18 +346,6 @@ ABISysV_hexagon::PrepareTrivialCall ( Thread &thread,
return true;
}
static bool
ReadIntegerArgument ( Scalar &scalar,
unsigned int bit_width,
bool is_signed,
Thread &thread,
uint32_t *argument_register_ids,
unsigned int &current_argument_register,
addr_t &current_stack_argument)
{
return false;
}
bool
ABISysV_hexagon::GetArgumentValues ( Thread &thread, ValueList &values ) const
{
@ -565,4 +551,4 @@ ABISysV_hexagon::GetReturnValueObjectImpl( lldb_private::Thread &thread, llvm::T
ConstString("")
);
return vObjSP;
}
}

View File

@ -56,9 +56,7 @@ static lldb::addr_t findSymbolAddress( Process *proc, ConstString findName )
lldb_private::Symtab *symtab = exe->GetSymtab( );
assert( symtab != nullptr );
int nSyms = symtab->GetNumSymbols( );
for ( int i = 0; i < symtab->GetNumSymbols( ); i++ )
for ( size_t i = 0; i < symtab->GetNumSymbols( ); i++ )
{
const Symbol* sym = symtab->SymbolAtIndex( i );
assert( sym != nullptr );
@ -403,7 +401,7 @@ DynamicLoaderHexagonDYLD::RendezvousBreakpointHit(void *baton,
dyld_instance->m_rendezvous.SetRendezvousAddress( structAddr );
if ( log )
log->Printf( "Found _rtld_debug structure @ 0x%08x", structAddr );
log->Printf( "Found _rtld_debug structure @ 0x%08lx", structAddr );
}
else
{