summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-07 19:42:15 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-07 19:42:15 +0000
commitf1cc8001fd405c3ec903cb6caf97a943bb3898ae (patch)
tree5c53c34e802dffa6508ca3fc738462a21da1bc1a
parent49698a1e691185a2a94d13edcce5c4a8d0db4762 (diff)
downloadexternal_llvm-f1cc8001fd405c3ec903cb6caf97a943bb3898ae.zip
external_llvm-f1cc8001fd405c3ec903cb6caf97a943bb3898ae.tar.gz
external_llvm-f1cc8001fd405c3ec903cb6caf97a943bb3898ae.tar.bz2
Implement MachOObjectFile::getData directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178997 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Object/MachOObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp
index 7bb8c19..7573541 100644
--- a/lib/Object/MachOObjectFile.cpp
+++ b/lib/Object/MachOObjectFile.cpp
@@ -91,7 +91,7 @@ unsigned MachOObjectFile::getHeaderSize() const {
}
StringRef MachOObjectFile::getData(size_t Offset, size_t Size) const {
- return MachOObj->getData(Offset, Size);
+ return ObjectFile::getData().substr(Offset, Size);
}
ObjectFile *ObjectFile::createMachOObjectFile(MemoryBuffer *Buffer) {