mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 23:45:25 +08:00
I didn't notice there was already an ObjectFile::GetEntryPoint. Move that over to GetEntryPointAddress 'cause that's more consistent with other functions in ObjectFile, do the mutatis mutandi and also in the ELF case I return a section offset address rather than a bare load address.
llvm-svn: 127205
This commit is contained in:
@@ -158,15 +158,6 @@ ObjectFileELF::IsExecutable() const
|
||||
return m_header.e_entry != 0;
|
||||
}
|
||||
|
||||
Address
|
||||
ObjectFileELF::GetEntryPoint() const
|
||||
{
|
||||
if (m_header.e_entry)
|
||||
return Address(NULL, m_header.e_entry);
|
||||
else
|
||||
return Address();
|
||||
}
|
||||
|
||||
ByteOrder
|
||||
ObjectFileELF::GetByteOrder() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user