summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObjectFile.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Object: make the following changes into SymbolRefBenjamin Kramer2011-09-141-1/+64
| | | | | | | | | | | - 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 SymbolRef::getAddress() to getOffset() in tools/llvm-nm and tools/llvm-objdump. Patch by Danil Malyshev! llvm-svn: 139683
* Remove dead code.Benjamin Kramer2011-09-091-8/+0
| | | | llvm-svn: 139343
* Fix release build:Nick Lewycky2011-09-091-3/+1
| | | | | | MachOObjectFile.cpp:524: error: unused variable 'NumLoadCommands' [-Wunused-variable] llvm-svn: 139341
* Add support for relocations to ObjectFile.Benjamin Kramer2011-09-081-4/+163
| | | | | | Patch by Danil Malyshev! llvm-svn: 139314
* ObjectFile: Add a method to check whether a section contains a symbol.Benjamin Kramer2011-07-151-0/+17
| | | | | | | - No ELF or COFF implementation yet, I don't have a way to test that. Should be straightforward to add though. llvm-svn: 135288
* MachOObjectFile: Get symbol functions ready for 64 bit.Benjamin Kramer2011-07-151-13/+58
| | | | llvm-svn: 135282
* Output MachO section names in the form SEGMENT,section.Benjamin Kramer2011-07-151-2/+2
| | | | llvm-svn: 135231
* Add support for 64 bit objects to MachOObjectFile.Benjamin Kramer2011-07-151-21/+77
| | | | | | - I don't see a better way than duplicating all the code. llvm-svn: 135229
* MachOObjectFile: Change isSectionText to return true for sections named ↵Benjamin Kramer2011-07-151-4/+3
| | | | | | text, not for load commands name __TEXT (which isn't the case in actual object files) llvm-svn: 135228
* Object: Add proper error handling.Michael J. Spencer2011-06-251-41/+65
| | | | llvm-svn: 133872
* Make Binary the parent of ObjectFile and update children to new interface.Michael J. Spencer2011-06-251-3/+4
| | | | llvm-svn: 133870
* Revert the last two commits in the series. r132911, r132912.Michael J. Spencer2011-06-131-4/+3
| | | | llvm-svn: 132913
* Make Binary the parent of ObjectFile and update children to new interface.Michael J. Spencer2011-06-131-3/+4
| | | | llvm-svn: 132911
* Use enums for constant values.Eric Christopher2011-04-221-12/+13
| | | | llvm-svn: 129984
* Make the file format strings a little prettier for mach-o.Eric Christopher2011-04-221-16/+12
| | | | llvm-svn: 129980
* Add an ObjectFile implementation for mach-o.Eric Christopher2011-04-221-0/+330
Patch by Patrick Walton! llvm-svn: 129974
OpenPOWER on IntegriCloud