diff options
Diffstat (limited to 'contrib/llvm-project/lld/MachO/ObjC.h')
-rw-r--r-- | contrib/llvm-project/lld/MachO/ObjC.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/llvm-project/lld/MachO/ObjC.h b/contrib/llvm-project/lld/MachO/ObjC.h new file mode 100644 index 000000000000..8db459ad8e2b --- /dev/null +++ b/contrib/llvm-project/lld/MachO/ObjC.h @@ -0,0 +1,31 @@ +//===- ObjC.h ---------------------------------------------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef LLD_MACHO_OBJC_H +#define LLD_MACHO_OBJC_H + +#include "llvm/Support/MemoryBuffer.h" + +namespace lld { +namespace macho { + +namespace objc { + +constexpr const char klass[] = "_OBJC_CLASS_$_"; +constexpr const char metaclass[] = "_OBJC_METACLASS_$_"; +constexpr const char ehtype[] = "_OBJC_EHTYPE_$_"; +constexpr const char ivar[] = "_OBJC_IVAR_$_"; + +} // namespace objc + +bool hasObjCSection(llvm::MemoryBufferRef); + +} // namespace macho +} // namespace lld + +#endif |