[llvm-commits] ObjectFile additional SymbolRef parameters

Danil Malyshev dmalyshev at accesssoftek.com
Fri Sep 9 13:10:57 PDT 2011


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.



Regards,
Danil

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110909/6822d023/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ObjectFile_additional_SymbolRef_parameters-01.patch
Type: application/octet-stream
Size: 16121 bytes
Desc: ObjectFile_additional_SymbolRef_parameters-01.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110909/6822d023/attachment.obj>


More information about the llvm-commits mailing list