Lines Matching refs:Asm

76 bool MachObjectWriter::isFixupKindPCRel(const MCAssembler &Asm, unsigned Kind) {  in isFixupKindPCRel()  argument
77 const MCFixupKindInfo &FKI = Asm.getBackend().getFixupKindInfo( in isFixupKindPCRel()
464 void MachObjectWriter::recordRelocation(MCAssembler &Asm, in recordRelocation() argument
470 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
475 TargetObjectWriter->recordRelocation(this, Asm, Layout, Fragment, Fixup, in recordRelocation()
479 void MachObjectWriter::bindIndirectSymbols(MCAssembler &Asm) { in bindIndirectSymbols() argument
489 for (IndirectSymbolData &ISD : llvm::make_range(Asm.indirect_symbol_begin(), in bindIndirectSymbols()
490 Asm.indirect_symbol_end())) { in bindIndirectSymbols()
505 for (MCAssembler::indirect_symbol_iterator it = Asm.indirect_symbol_begin(), in bindIndirectSymbols()
506 ie = Asm.indirect_symbol_end(); it != ie; ++it, ++IndirectIndex) { in bindIndirectSymbols()
516 Asm.registerSymbol(*it->Symbol); in bindIndirectSymbols()
521 for (MCAssembler::indirect_symbol_iterator it = Asm.indirect_symbol_begin(), in bindIndirectSymbols()
522 ie = Asm.indirect_symbol_end(); it != ie; ++it, ++IndirectIndex) { in bindIndirectSymbols()
536 Asm.registerSymbol(*it->Symbol, &Created); in bindIndirectSymbols()
544 MCAssembler &Asm, std::vector<MachSymbolData> &LocalSymbolData, in computeSymbolTable() argument
550 for (MCAssembler::iterator it = Asm.begin(), in computeSymbolTable()
551 ie = Asm.end(); it != ie; ++it, ++Index) in computeSymbolTable()
556 for (const MCSymbol &Symbol : Asm.symbols()) { in computeSymbolTable()
557 if (!Asm.isSymbolLinkerVisible(Symbol)) in computeSymbolTable()
569 for (const MCSymbol &Symbol : Asm.symbols()) { in computeSymbolTable()
571 if (!Asm.isSymbolLinkerVisible(Symbol)) in computeSymbolTable()
595 for (const MCSymbol &Symbol : Asm.symbols()) { in computeSymbolTable()
597 if (!Asm.isSymbolLinkerVisible(Symbol)) in computeSymbolTable()
628 for (const MCSection &Section : Asm) { in computeSymbolTable()
644 void MachObjectWriter::computeSectionAddresses(const MCAssembler &Asm, in computeSectionAddresses() argument
659 void MachObjectWriter::executePostLayoutBinding(MCAssembler &Asm, in executePostLayoutBinding() argument
661 computeSectionAddresses(Asm, Layout); in executePostLayoutBinding()
664 bindIndirectSymbols(Asm); in executePostLayoutBinding()
668 const MCAssembler &Asm, const MCSymbol &A, const MCSymbol &B, in isSymbolRefDifferenceFullyResolvedImpl() argument
675 return MCObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(Asm, A, B, in isSymbolRefDifferenceFullyResolvedImpl()
680 const MCAssembler &Asm, const MCSymbol &SymA, const MCFragment &FB, in isSymbolRefDifferenceFullyResolvedImpl() argument
712 Asm.getSubsectionsViaSymbols())) in isSymbolRefDifferenceFullyResolvedImpl()
756 void MachObjectWriter::populateAddrSigSection(MCAssembler &Asm) { in populateAddrSigSection() argument
758 Asm.getContext().getObjectFileInfo()->getAddrSigSection(); in populateAddrSigSection()
768 uint64_t MachObjectWriter::writeObject(MCAssembler &Asm, in writeObject() argument
772 populateAddrSigSection(Asm); in writeObject()
775 computeSymbolTable(Asm, LocalSymbolData, ExternalSymbolData, in writeObject()
778 if (!Asm.CGProfile.empty()) { in writeObject()
779 MCSection *CGProfileSection = Asm.getContext().getMachOSection( in writeObject()
786 for (const MCAssembler::CGProfileEntry &CGPE : Asm.CGProfile) { in writeObject()
795 unsigned NumSections = Asm.size(); in writeObject()
827 unsigned NumDataRegions = Asm.getDataRegions().size(); in writeObject()
834 uint64_t LOHRawSize = Asm.getLOHContainer().getEmitSize(*this, Layout); in writeObject()
851 for (const auto &Option : Asm.getLinkerOptions()) { in writeObject()
863 for (const MCSection &Sec : Asm) { in writeObject()
887 Asm.getSubsectionsViaSymbols()); in writeObject()
895 for (const MCSection &Section : Asm) { in writeObject()
970 unsigned NumIndirectSymbols = Asm.indirect_symbol_size(); in writeObject()
998 for (const auto &Option : Asm.getLinkerOptions()) in writeObject()
1002 for (const MCSection &Sec : Asm) { in writeObject()
1003 Asm.writeSectionData(W.OS, &Sec, Layout); in writeObject()
1013 for (const MCSection &Sec : Asm) { in writeObject()
1025 it = Asm.data_region_begin(), ie = Asm.data_region_end(); in writeObject()
1050 Asm.getLOHContainer().emit(*this, Layout); in writeObject()
1061 it = Asm.indirect_symbol_begin(), in writeObject()
1062 ie = Asm.indirect_symbol_end(); it != ie; ++it) { in writeObject()