summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/COFFObjectFile.cpp
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
commitc429b80da154c7ee7a9fd81d7707343d77b05565 (patch)
tree2285cc27e29444365f44c0c997adea49fc91d5a8 /llvm/lib/Object/COFFObjectFile.cpp
parentf0269b42705a1c4281c30f1c01bcffa40eef7003 (diff)
downloadbcm5719-llvm-c429b80da154c7ee7a9fd81d7707343d77b05565.tar.gz
bcm5719-llvm-c429b80da154c7ee7a9fd81d7707343d77b05565.zip
[Object]
Add ObjectFile::getLoadName() for retrieving the soname/installname of a shared object. llvm-svn: 151845
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/COFFObjectFile.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index 393c574d532..a3fdd5bb6a7 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/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));
OpenPOWER on IntegriCloud