diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-07 19:42:15 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-07 19:42:15 +0000 |
commit | f1cc8001fd405c3ec903cb6caf97a943bb3898ae (patch) | |
tree | 5c53c34e802dffa6508ca3fc738462a21da1bc1a | |
parent | 49698a1e691185a2a94d13edcce5c4a8d0db4762 (diff) | |
download | external_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.cpp | 2 |
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) { |