Path: blob/main/contrib/llvm-project/lld/MachO/ObjC.h
34869 views
//===- ObjC.h ---------------------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLD_MACHO_OBJC_H9#define LLD_MACHO_OBJC_H1011#include "llvm/Support/MemoryBuffer.h"1213namespace lld::macho {1415namespace objc {1617namespace symbol_names {18constexpr const char klass[] = "_OBJC_CLASS_$_";19constexpr const char klassPropList[] = "__OBJC_$_CLASS_PROP_LIST_";2021constexpr const char metaclass[] = "_OBJC_METACLASS_$_";22constexpr const char ehtype[] = "_OBJC_EHTYPE_$_";23constexpr const char ivar[] = "_OBJC_IVAR_$_";24constexpr const char instanceMethods[] = "__OBJC_$_INSTANCE_METHODS_";25constexpr const char classMethods[] = "__OBJC_$_CLASS_METHODS_";26constexpr const char listProprieties[] = "__OBJC_$_PROP_LIST_";2728constexpr const char category[] = "__OBJC_$_CATEGORY_";29constexpr const char categoryInstanceMethods[] =30"__OBJC_$_CATEGORY_INSTANCE_METHODS_";31constexpr const char categoryClassMethods[] =32"__OBJC_$_CATEGORY_CLASS_METHODS_";33constexpr const char categoryProtocols[] = "__OBJC_CATEGORY_PROTOCOLS_$_";3435constexpr const char swift_objc_category[] = "__CATEGORY_";36constexpr const char swift_objc_klass[] = "_$s";37} // namespace symbol_names3839// Check for duplicate method names within related categories / classes.40void checkCategories();41void mergeCategories();4243void doCleanup();44} // namespace objc4546bool hasObjCSection(llvm::MemoryBufferRef);4748} // namespace lld::macho4950#endif515253