Implement MachOObjectFile::getData directly.

llvm-svn: 178997
This commit is contained in:
Rafael Espindola 2013-04-07 19:42:15 +00:00
parent 28814d7911
commit c1f28b6a8e
1 changed files with 1 additions and 1 deletions

View File

@ -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) {