aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Object
diff options
context:
space:
mode:
authorDavid Meyer <pdox@google.com>2012-03-01 22:19:54 +0000
committerDavid Meyer <pdox@google.com>2012-03-01 22:19:54 +0000
commit97f7787bfb56ad31fe20ec0bb9c3c9f3253d14fb (patch)
tree6a3c615a02060ec4f77b81f1ca36800c97f6b2d8 /lib/Object
parentb0578512c79134136e8b53c62a8677ab8e600be2 (diff)
downloadexternal_llvm-97f7787bfb56ad31fe20ec0bb9c3c9f3253d14fb.zip
external_llvm-97f7787bfb56ad31fe20ec0bb9c3c9f3253d14fb.tar.gz
external_llvm-97f7787bfb56ad31fe20ec0bb9c3c9f3253d14fb.tar.bz2
[Object]
Add ObjectFile::getLoadName() for retrieving the soname/installname of a shared object. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r--lib/Object/COFFObjectFile.cpp6
-rw-r--r--lib/Object/MachOObjectFile.cpp5
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/Object/COFFObjectFile.cpp b/lib/Object/COFFObjectFile.cpp
index 393c574..a3fdd5b 100644
--- a/lib/Object/COFFObjectFile.cpp
+++ b/lib/Object/COFFObjectFile.cpp
@@ -525,6 +525,12 @@ library_iterator COFFObjectFile::end_libraries_needed() const {
report_fatal_error("Libraries needed unimplemented in COFFObjectFile");
}
+StringRef COFFObjectFile::getLoadName() const {
+ // COFF does not have this field.
+ return "";
+}
+
+
section_iterator COFFObjectFile::begin_sections() const {
DataRefImpl ret;
std::memset(&ret, 0, sizeof(DataRefImpl));
diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp
index 360ab16..655c40a 100644
--- a/lib/Object/MachOObjectFile.cpp
+++ b/lib/Object/MachOObjectFile.cpp
@@ -387,6 +387,11 @@ library_iterator MachOObjectFile::end_libraries_needed() const {
report_fatal_error("Needed libraries unimplemented in MachOObjectFile");
}
+StringRef MachOObjectFile::getLoadName() const {
+ // TODO: Implement
+ report_fatal_error("get_load_name() unimplemented in MachOObjectFile");
+}
+
/*===-- Sections ----------------------------------------------------------===*/
void MachOObjectFile::moveToNextSection(DataRefImpl &DRI) const {