reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/BinaryFormat/MachO.h
 1024 inline void swapStruct(mach_header &mh) {
include/llvm/Object/MachO.h
  545   const MachO::mach_header &getHeader() const;
  659     MachO::mach_header Header;
include/llvm/Support/AlignOf.h
   30   T t;
   39 template <typename T> union SizerImpl<T> { char arr[sizeof(T)]; };
   50       llvm::detail::SizerImpl<T, Ts...>)];
include/llvm/Support/Error.h
  437   static const bool isRef = std::is_reference<T>::value;
  439   using wrap = std::reference_wrapper<typename std::remove_reference<T>::type>;
  444   using storage_type = typename std::conditional<isRef, wrap, T>::type;
  445   using value_type = T;
  448   using reference = typename std::remove_reference<T>::type &;
  449   using const_reference = const typename std::remove_reference<T>::type &;
  450   using pointer = typename std::remove_reference<T>::type *;
  451   using const_pointer = const typename std::remove_reference<T>::type *;
  474   Expected(OtherT &&Val,
  475            typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
  475            typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
  483     new (getStorage()) storage_type(std::forward<OtherT>(Val));
  492   Expected(Expected<OtherT> &&Other,
  493            typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
  493            typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
  594   template <class OtherT> void moveConstruct(Expected<OtherT> &&Other) {
lib/BinaryFormat/Magic.cpp
  132         MinSize = sizeof(MachO::mach_header);
  142         MinSize = sizeof(MachO::mach_header);
lib/MC/MachObjectWriter.cpp
  815                                sizeof(MachO::mach_header)) + LoadCommandsSize;
lib/Object/MachOObjectFile.cpp
   81 static Expected<T> getStructOrErr(const MachOObjectFile &O, const char *P) {
   83   if (P < O.getData().begin() || P + sizeof(T) > O.getData().end())
   86   T Cmd;
   87   memcpy(&Cmd, P, sizeof(T));
  200                                       : sizeof(MachO::mach_header);
  211                                       : sizeof(MachO::mach_header);
  220 static void parseHeader(const MachOObjectFile &Obj, T &Header,
  222   if (sizeof(T) > Obj.getData().size()) {
  227   if (auto HeaderOrErr = getStructOrErr<T>(Obj, getPtr(Obj, 0)))
 1268     SizeOfHeaders = sizeof(MachO::mach_header);
 1680     MachO::mach_header H = MachOObjectFile::getHeader();
 4435 const MachO::mach_header &MachOObjectFile::getHeader() const {
lib/ObjectYAML/MachOEmitter.cpp
   86       is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header);
tools/dsymutil/MachOUtils.cpp
  412       Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp
  121 static bool isMachOHeader(const mach_header *mh, bool &is64, bool &isBig) {
  157   const mach_header *mh = reinterpret_cast<const mach_header *>(
  211   const mach_header *mh = reinterpret_cast<const mach_header *>(start);
  227   mach_header headerCopy;
  228   const mach_header *smh = mh;
  230     memcpy(&headerCopy, mh, sizeof(mach_header));
  238       start + (is64 ? sizeof(mach_header_64) : sizeof(mach_header));
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
  261   _startOfLoadCommands = _is64 ? sizeof(mach_header_64) : sizeof(mach_header);
  592   mach_header *mh = reinterpret_cast<mach_header*>(_buffer);
tools/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
  394 DynamicLoaderDarwinKernel::ReadMachHeader(addr_t addr, Process *process, llvm::MachO::mach_header &header,
  452   llvm::MachO::mach_header header;
  663   llvm::MachO::mach_header mh;
  667       size_to_read = sizeof(llvm::MachO::mach_header) + mh.sizeofcmds;
tools/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h
  280   ReadMachHeader(lldb::addr_t addr, lldb_private::Process *process, llvm::MachO::mach_header &mh,
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.h
  110     llvm::MachO::mach_header header;
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp
  758                                              llvm::MachO::mach_header *header,
  760   DataBufferHeap header_bytes(sizeof(llvm::MachO::mach_header), 0);
  764   if (bytes_read == sizeof(llvm::MachO::mach_header)) {
  766     ::memset(header, 0, sizeof(llvm::MachO::mach_header));
  780       load_cmd_addr += sizeof(llvm::MachO::mach_header);
  795                     (sizeof(llvm::MachO::mach_header) / sizeof(uint32_t)) -
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h
   91   bool ReadMachHeader(lldb::addr_t addr, llvm::MachO::mach_header *header,
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
  738     return sizeof(struct mach_header);
  826     llvm::MachO::mach_header header;
  925                                   llvm::MachO::mach_header &header) {
 1061     memset(&m_header, 0, sizeof(struct mach_header));
 4741 UUID ObjectFileMachO::GetUUID(const llvm::MachO::mach_header &header,
 4849 void ObjectFileMachO::GetAllArchSpecs(const llvm::MachO::mach_header &header,
 4984     ModuleSP module_sp, const llvm::MachO::mach_header &header,
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
  134                           llvm::MachO::mach_header &header);
  145   GetUUID(const llvm::MachO::mach_header &header,
  150       lldb::ModuleSP module_sp, const llvm::MachO::mach_header &header,
  160   static void GetAllArchSpecs(const llvm::MachO::mach_header &header,
  210   llvm::MachO::mach_header m_header;
tools/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
   66     const size_t header_size = sizeof(llvm::MachO::mach_header);
   73       llvm::MachO::mach_header mach_header;
  135   llvm::MachO::mach_header header;
  226   llvm::MachO::mach_header header;
tools/llvm-nm/llvm-nm.cpp
  358   MachO::mach_header H;
 1275     MachO::mach_header H;
 1753   MachO::mach_header H;
tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp
  104       Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header);
tools/llvm-objcopy/MachO/MachOWriter.cpp
   24   return Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header);
  144       Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header);
tools/llvm-objdump/MachODump.cpp
 1883   MachO::mach_header H;
 6844     MachO::mach_header H;
 7297   MachO::mach_header Header = MachOOF->getHeader();
 7398           const MachO::mach_header H = MachOOF->getHeader();
10205     MachO::mach_header H;
10227     MachO::mach_header H;
tools/llvm-readobj/MachODumper.cpp
   51   void printFileHeaders(const MachHeader &Header);
tools/llvm-size/llvm-size.cpp
  518   MachO::mach_header H;
unittests/BinaryFormat/MachOTest.cpp
   30   mach_header *Header =
   35   unsigned char *Current = Valid32BitMachO + sizeof(mach_header);
   37       Valid32BitMachO + sizeof(mach_header) + Header->sizeofcmds;
usr/include/c++/7.4.0/bits/move.h
   72     constexpr _Tp&&
   73     forward(typename std::remove_reference<_Tp>::type& __t) noexcept
   83     constexpr _Tp&&
   84     forward(typename std::remove_reference<_Tp>::type&& __t) noexcept
   98     move(_Tp&& __t) noexcept
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  602                           is_void<_Tp>>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  762     typename add_rvalue_reference<_Tp>::type declval() noexcept;
 1526 	static void __test_aux(_To1);
 1538       typedef decltype(__test<_From, _To>(0)) type;
 1538       typedef decltype(__test<_From, _To>(0)) type;
 1545     : public __is_convertible_helper<_From, _To>::type
 1545     : public __is_convertible_helper<_From, _To>::type
 1554     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1629     { typedef _Tp   type; };
 1633     { typedef _Tp   type; };
 1659     { typedef _Tp&&   type; };
 1664     : public __add_rvalue_reference_helper<_Tp>
 2171     { typedef _Iffalse type; };