[llvm-commits] ObjectFile additional SymbolRef parameters

Benjamin Kramer benny.kra at googlemail.com
Tue Sep 13 18:24:36 PDT 2011


On Fri, Sep 9, 2011 at 13:10, Danil Malyshev <dmalyshev at accesssoftek.com> wrote:
> Hello everyone,
>
>
>
>
>
> Please find attached the patch for review.
>
> This patch makes the following changes into SymbolRef:
>
>
>
> - Add enum SymbolType and function getSymbolType()
>
>
>
> - Add function isGlobal() - it's returns true for symbols that can be used
> in another objects, such as library functions.
>
>
>
> - Rename function getAddress() to getOffset() and add new function
> getAddress(), because currently getAddress() returns section offset of
> symbol first byte. new getAddress() return symbol address.
>
>
>
> - Change usage SumbolRef::getAddress() to getOffset() in tools/llvm-nm and
> tools/llvm-objdump.

Looks good, committed as r139683.

- Ben



More information about the llvm-commits mailing list