llvm/lld/MachO/ObjC.h

//===- 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::macho {

namespace objc {

namespace symbol_names {
constexpr const char klass[] =;
constexpr const char klassPropList[] =;

constexpr const char metaclass[] =;
constexpr const char ehtype[] =;
constexpr const char ivar[] =;
constexpr const char instanceMethods[] =;
constexpr const char classMethods[] =;
constexpr const char listProprieties[] =;

constexpr const char category[] =;
constexpr const char categoryInstanceMethods[] =;
constexpr const char categoryClassMethods[] =;
constexpr const char categoryProtocols[] =;

constexpr const char swift_objc_category[] =;
constexpr const char swift_objc_klass[] =;
} // namespace symbol_names

// Check for duplicate method names within related categories / classes.
void checkCategories();
void mergeCategories();

void doCleanup();
} // namespace objc

bool hasObjCSection(llvm::MemoryBufferRef);

} // namespace lld::macho

#endif