forked from OSchip/llvm-project
Implement MachOObjectFile::getData directly.
llvm-svn: 178997
This commit is contained in:
parent
28814d7911
commit
c1f28b6a8e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue