Lines Matching refs:macho
16 #include "llvm/Object/MachO.h"
62 if (LCI.Command.Type == macho::LCT_Symtab) {
63 InMemoryStruct<macho::SymtabLoadCommand> SymtabLoadCmd;
75 InMemoryStruct<macho::SymbolTableEntry> &Res) const {
76 InMemoryStruct<macho::SymtabLoadCommand> SymtabLoadCmd;
90 InMemoryStruct<macho::Symbol64TableEntry> &Res) const {
91 InMemoryStruct<macho::SymtabLoadCommand> SymtabLoadCmd;
116 InMemoryStruct<macho::Symbol64TableEntry> Entry;
120 InMemoryStruct<macho::SymbolTableEntry> Entry;
132 InMemoryStruct<macho::Symbol64TableEntry> Entry;
137 InMemoryStruct<macho::SymbolTableEntry> Entry;
151 InMemoryStruct<macho::Symbol64TableEntry> Entry;
155 InMemoryStruct<macho::SymbolTableEntry> Entry;
172 InMemoryStruct<macho::Symbol64TableEntry> Entry;
177 InMemoryStruct<macho::SymbolTableEntry> Entry;
184 switch (Type & macho::STF_TypeMask) {
185 case macho::STT_Undefined:
188 case macho::STT_Absolute:
189 case macho::STT_Section:
197 if (Flags & (macho::STF_External | macho::STF_PrivateExtern))
206 InMemoryStruct<macho::Symbol64TableEntry> Entry;
208 Result = Entry->Flags & macho::STF_StabsEntryMask;
210 InMemoryStruct<macho::SymbolTableEntry> Entry;
212 Result = Entry->Flags & macho::STF_StabsEntryMask;
220 InMemoryStruct<macho::Symbol64TableEntry> Entry;
222 Res = Entry->Type & MachO::NlistMaskExternal;
224 InMemoryStruct<macho::SymbolTableEntry> Entry;
226 Res = Entry->Type & MachO::NlistMaskExternal;
235 InMemoryStruct<macho::Symbol64TableEntry> Entry;
239 InMemoryStruct<macho::SymbolTableEntry> Entry;
246 if (n_type & MachO::NlistMaskStab)
249 switch (n_type & MachO::NlistMaskType) {
250 case MachO::NListTypeUndefined :
253 case MachO::NListTypeSection :
283 if (LCI.Command.Type == macho::LCT_Segment) {
284 InMemoryStruct<macho::SegmentLoadCommand> SegmentLoadCmd;
288 } else if (LCI.Command.Type == macho::LCT_Segment64) {
289 InMemoryStruct<macho::Segment64LoadCommand> Segment64LoadCmd;
310 InMemoryStruct<macho::Section> &Res) const {
311 InMemoryStruct<macho::SegmentLoadCommand> SLC;
326 InMemoryStruct<macho::Section64> &Res) const {
327 InMemoryStruct<macho::Segment64LoadCommand> SLC;
335 if (LCI.Command.Type == macho::LCT_Segment64)
337 assert(LCI.Command.Type == macho::LCT_Segment && "Unexpected Type.");
346 InMemoryStruct<macho::Segment64LoadCommand> SLC;
349 InMemoryStruct<macho::Section64> Sect;
356 InMemoryStruct<macho::SegmentLoadCommand> SLC;
359 InMemoryStruct<macho::Section> Sect;
373 InMemoryStruct<macho::Section64> Sect;
377 InMemoryStruct<macho::Section> Sect;
387 InMemoryStruct<macho::Section64> Sect;
391 InMemoryStruct<macho::Section> Sect;
401 InMemoryStruct<macho::Section64> Sect;
405 InMemoryStruct<macho::Section> Sect;
415 InMemoryStruct<macho::Section64> Sect;
419 InMemoryStruct<macho::Section> Sect;
429 InMemoryStruct<macho::Section64> Sect;
433 InMemoryStruct<macho::Section> Sect;
470 InMemoryStruct<macho::Symbol64TableEntry> Entry;
475 InMemoryStruct<macho::SymbolTableEntry> Entry;
493 InMemoryStruct<macho::Section64> Sect;
497 InMemoryStruct<macho::Section> Sect;
525 InMemoryStruct<macho::RelocationEntry> &Res) const {
528 InMemoryStruct<macho::Section64> Sect;
532 InMemoryStruct<macho::Section> Sect;
548 InMemoryStruct<macho::Section64> Sect;
552 InMemoryStruct<macho::Section> Sect;
556 InMemoryStruct<macho::RelocationEntry> RE;
563 InMemoryStruct<macho::RelocationEntry> RE;
584 InMemoryStruct<macho::RelocationEntry> RE;
595 InMemoryStruct<macho::RelocationEntry> RE;
602 InMemoryStruct<macho::Section64> Sect;
606 InMemoryStruct<macho::Section> Sect;
628 case llvm::MachO::CPUTypeI386:
630 case llvm::MachO::CPUTypeARM:
632 case llvm::MachO::CPUTypePowerPC:
635 assert((MachOObj->getHeader().CPUType & llvm::MachO::CPUArchABI64) == 0 &&
642 case llvm::MachO::CPUTypeX86_64:
644 case llvm::MachO::CPUTypePowerPC64:
647 assert((MachOObj->getHeader().CPUType & llvm::MachO::CPUArchABI64) == 1 &&
655 case llvm::MachO::CPUTypeI386:
657 case llvm::MachO::CPUTypeX86_64:
659 case llvm::MachO::CPUTypeARM:
661 case llvm::MachO::CPUTypePowerPC:
663 case llvm::MachO::CPUTypePowerPC64: