diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2019-01-08 02:02:27 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2019-01-08 02:02:27 +0000 |
commit | 43cba997757ded62277e8a3658d86f2e2bf42b05 (patch) | |
tree | 443985f84dc8df3dc15979c6dc0d98cacb27344d /compiler-rt/lib/sanitizer_common | |
parent | gn build: Merge r350580. (diff) | |
download | llvm-project-43cba997757ded62277e8a3658d86f2e2bf42b05.tar.gz llvm-project-43cba997757ded62277e8a3658d86f2e2bf42b05.tar.bz2 llvm-project-43cba997757ded62277e8a3658d86f2e2bf42b05.zip |
Fix Mac compilation.
Provide an implementation of MemoryMappingLayout::Error() for Mac.
llvm-svn: 350601
Diffstat (limited to 'compiler-rt/lib/sanitizer_common')
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc index d90e4b9937f1..267c960b55d4 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc @@ -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 |