Commit bd3f2606 authored by Jim Ingham's avatar Jim Ingham
Browse files

I didn't notice there was already an ObjectFile::GetEntryPoint. Move that...

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
parent 52b3e38a
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -175,17 +175,6 @@ public:
    virtual bool
    IsExecutable () const = 0;

    //------------------------------------------------------------------
    /// Returns the virtual address of the entry point for this object 
    /// file.
    ///
    /// @return
    ///     The virtual address of the entry point or an invalid address
    ///     if an entry point is not defined.
    //------------------------------------------------------------------
    virtual lldb_private::Address
    GetEntryPoint () const { return Address(); }
    
    //------------------------------------------------------------------
    /// Returns the offset into a file at which this object resides.
    ///
+0 −9
Original line number Diff line number Diff line
@@ -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
{
+0 −3
Original line number Diff line number Diff line
@@ -89,9 +89,6 @@ public:
    virtual bool
    IsExecutable () const;

    virtual lldb_private::Address
    GetEntryPoint() const;

    virtual size_t
    GetAddressByteSize() const;