Fix Mac compilation.

Provide an implementation of MemoryMappingLayout::Error() for Mac.

llvm-svn: 350601
This commit is contained in:
Evgeniy Stepanov 2019-01-08 02:02:27 +00:00
parent d2d7893dbb
commit 43cba99775
1 changed files with 4 additions and 0 deletions

View File

@ -88,6 +88,10 @@ MemoryMappingLayout::MemoryMappingLayout(bool cache_enabled) {
MemoryMappingLayout::~MemoryMappingLayout() {
}
bool MemoryMappingLayout::Error() const {
return false;
}
// More information about Mach-O headers can be found in mach-o/loader.h
// Each Mach-O image has a header (mach_header or mach_header_64) starting with
// a magic number, and a list of linker load commands directly following the