diff options
author | David Meyer <pdox@google.com> | 2012-03-01 01:36:50 +0000 |
---|---|---|
committer | David Meyer <pdox@google.com> | 2012-03-01 01:36:50 +0000 |
commit | 5c2b4ea73c8f48bb5f96c86fe437385b8fb3dcda (patch) | |
tree | e62d2d345c810a0aaf0a561192a31079c5acb5b6 /lib/Object/MachOObjectFile.cpp | |
parent | 741981adf3a2bc0c6652c9c4ec846250950f3e68 (diff) | |
download | external_llvm-5c2b4ea73c8f48bb5f96c86fe437385b8fb3dcda.zip external_llvm-5c2b4ea73c8f48bb5f96c86fe437385b8fb3dcda.tar.gz external_llvm-5c2b4ea73c8f48bb5f96c86fe437385b8fb3dcda.tar.bz2 |
[Object]
* Add begin_dynamic_table() / end_dynamic_table() private interface to ELFObjectFile.
* Add begin_libraries_needed() / end_libraries_needed() interface to ObjectFile, for grabbing the list of needed libraries for a shared object or dynamic executable.
* Implement this new interface completely for ELF, leave stubs for COFF and MachO.
* Add 'llvm-readobj' tool for dumping ObjectFile information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object/MachOObjectFile.cpp')
-rw-r--r-- | lib/Object/MachOObjectFile.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp index 76a01f9..360ab16 100644 --- a/lib/Object/MachOObjectFile.cpp +++ b/lib/Object/MachOObjectFile.cpp @@ -377,6 +377,16 @@ symbol_iterator MachOObjectFile::end_dynamic_symbols() const { report_fatal_error("Dynamic symbols unimplemented in MachOObjectFile"); } +library_iterator MachOObjectFile::begin_libraries_needed() const { + // TODO: implement + report_fatal_error("Needed libraries unimplemented in MachOObjectFile"); +} + +library_iterator MachOObjectFile::end_libraries_needed() const { + // TODO: implement + report_fatal_error("Needed libraries unimplemented in MachOObjectFile"); +} + /*===-- Sections ----------------------------------------------------------===*/ void MachOObjectFile::moveToNextSection(DataRefImpl &DRI) const { @@ -1175,6 +1185,17 @@ error_code MachOObjectFile::getRelocationHidden(DataRefImpl Rel, return object_error::success; } +error_code MachOObjectFile::getLibraryNext(DataRefImpl LibData, + LibraryRef &Res) const { + report_fatal_error("Needed libraries unimplemented in MachOObjectFile"); +} + +error_code MachOObjectFile::getLibraryPath(DataRefImpl LibData, + StringRef &Res) const { + report_fatal_error("Needed libraries unimplemented in MachOObjectFile"); +} + + /*===-- Miscellaneous -----------------------------------------------------===*/ uint8_t MachOObjectFile::getBytesInAddress() const { |