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