diff options
Diffstat (limited to 'include/llvm/BinaryFormat/MachO.h')
-rw-r--r-- | include/llvm/BinaryFormat/MachO.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/BinaryFormat/MachO.h b/include/llvm/BinaryFormat/MachO.h index a01393a3b303..fb50e549cb9d 100644 --- a/include/llvm/BinaryFormat/MachO.h +++ b/include/llvm/BinaryFormat/MachO.h @@ -581,6 +581,11 @@ struct section_64 { uint32_t reserved3; }; +inline bool isVirtualSection(uint8_t type) { + return (type == MachO::S_ZEROFILL || type == MachO::S_GB_ZEROFILL || + type == MachO::S_THREAD_LOCAL_ZEROFILL); +} + struct fvmlib { uint32_t name; uint32_t minor_version; |