xref: /freebsd/contrib/llvm-project/lld/MachO/ObjC.h (revision e8d8bef961a50d4dc22501cde4fb9fb0be1b2532)
1*e8d8bef9SDimitry Andric //===- ObjC.h ---------------------------------------------------*- C++ -*-===//
2*e8d8bef9SDimitry Andric //
3*e8d8bef9SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*e8d8bef9SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*e8d8bef9SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*e8d8bef9SDimitry Andric //
7*e8d8bef9SDimitry Andric //===----------------------------------------------------------------------===//
8*e8d8bef9SDimitry Andric 
9*e8d8bef9SDimitry Andric #ifndef LLD_MACHO_OBJC_H
10*e8d8bef9SDimitry Andric #define LLD_MACHO_OBJC_H
11*e8d8bef9SDimitry Andric 
12*e8d8bef9SDimitry Andric #include "llvm/Support/MemoryBuffer.h"
13*e8d8bef9SDimitry Andric 
14*e8d8bef9SDimitry Andric namespace lld {
15*e8d8bef9SDimitry Andric namespace macho {
16*e8d8bef9SDimitry Andric 
17*e8d8bef9SDimitry Andric namespace objc {
18*e8d8bef9SDimitry Andric 
19*e8d8bef9SDimitry Andric constexpr const char klass[] = "_OBJC_CLASS_$_";
20*e8d8bef9SDimitry Andric constexpr const char metaclass[] = "_OBJC_METACLASS_$_";
21*e8d8bef9SDimitry Andric constexpr const char ehtype[] = "_OBJC_EHTYPE_$_";
22*e8d8bef9SDimitry Andric constexpr const char ivar[] = "_OBJC_IVAR_$_";
23*e8d8bef9SDimitry Andric 
24*e8d8bef9SDimitry Andric } // namespace objc
25*e8d8bef9SDimitry Andric 
26*e8d8bef9SDimitry Andric bool hasObjCSection(llvm::MemoryBufferRef);
27*e8d8bef9SDimitry Andric 
28*e8d8bef9SDimitry Andric } // namespace macho
29*e8d8bef9SDimitry Andric } // namespace lld
30*e8d8bef9SDimitry Andric 
31*e8d8bef9SDimitry Andric #endif
32