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()
463 void MachObjectWriter::recordRelocation(MCAssembler &Asm, in recordRelocation() argument
469 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
474 TargetObjectWriter->recordRelocation(this, Asm, Layout, Fragment, Fixup, in recordRelocation()
478 void MachObjectWriter::bindIndirectSymbols(MCAssembler &Asm) { in bindIndirectSymbols() argument
488 for (IndirectSymbolData &ISD : llvm::make_range(Asm.indirect_symbol_begin(), in bindIndirectSymbols()
489 Asm.indirect_symbol_end())) { in bindIndirectSymbols()
504 for (MCAssembler::indirect_symbol_iterator it = Asm.indirect_symbol_begin(), in bindIndirectSymbols()
505 ie = Asm.indirect_symbol_end(); it != ie; ++it, ++IndirectIndex) { in bindIndirectSymbols()
515 Asm.registerSymbol(*it->Symbol); in bindIndirectSymbols()
520 for (MCAssembler::indirect_symbol_iterator it = Asm.indirect_symbol_begin(), in bindIndirectSymbols()
521 ie = Asm.indirect_symbol_end(); it != ie; ++it, ++IndirectIndex) { in bindIndirectSymbols()
534 if (Asm.registerSymbol(*it->Symbol)) in bindIndirectSymbols()
541 MCAssembler &Asm, std::vector<MachSymbolData> &LocalSymbolData, in computeSymbolTable() argument
547 for (MCAssembler::iterator it = Asm.begin(), in computeSymbolTable()
548 ie = Asm.end(); it != ie; ++it, ++Index) in computeSymbolTable()
553 for (const MCSymbol &Symbol : Asm.symbols()) { in computeSymbolTable()
554 if (!Asm.isSymbolLinkerVisible(Symbol)) in computeSymbolTable()
566 for (const MCSymbol &Symbol : Asm.symbols()) { in computeSymbolTable()
568 if (!Asm.isSymbolLinkerVisible(Symbol)) in computeSymbolTable()
592 for (const MCSymbol &Symbol : Asm.symbols()) { in computeSymbolTable()
594 if (!Asm.isSymbolLinkerVisible(Symbol)) in computeSymbolTable()
625 for (const MCSection &Section : Asm) { in computeSymbolTable()
641 void MachObjectWriter::computeSectionAddresses(const MCAssembler &Asm, in computeSectionAddresses() argument
656 void MachObjectWriter::executePostLayoutBinding(MCAssembler &Asm, in executePostLayoutBinding() argument
658 computeSectionAddresses(Asm, Layout); in executePostLayoutBinding()
661 bindIndirectSymbols(Asm); in executePostLayoutBinding()
665 const MCAssembler &Asm, const MCSymbol &A, const MCSymbol &B, in isSymbolRefDifferenceFullyResolvedImpl() argument
672 return MCObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(Asm, A, B, in isSymbolRefDifferenceFullyResolvedImpl()
677 const MCAssembler &Asm, const MCSymbol &SymA, const MCFragment &FB, in isSymbolRefDifferenceFullyResolvedImpl() argument
709 Asm.getSubsectionsViaSymbols())) in isSymbolRefDifferenceFullyResolvedImpl()
743 void MachObjectWriter::populateAddrSigSection(MCAssembler &Asm) { in populateAddrSigSection() argument
745 Asm.getContext().getObjectFileInfo()->getAddrSigSection(); in populateAddrSigSection()
757 uint64_t MachObjectWriter::writeObject(MCAssembler &Asm, in writeObject() argument
761 populateAddrSigSection(Asm); in writeObject()
764 computeSymbolTable(Asm, LocalSymbolData, ExternalSymbolData, in writeObject()
767 if (!Asm.CGProfile.empty()) { in writeObject()
768 MCSection *CGProfileSection = Asm.getContext().getMachOSection( in writeObject()
775 for (const MCAssembler::CGProfileEntry &CGPE : Asm.CGProfile) { in writeObject()
784 unsigned NumSections = Asm.size(); in writeObject()
816 unsigned NumDataRegions = Asm.getDataRegions().size(); in writeObject()
823 uint64_t LOHRawSize = Asm.getLOHContainer().getEmitSize(*this, Layout); in writeObject()
840 for (const auto &Option : Asm.getLinkerOptions()) { in writeObject()
852 for (const MCSection &Sec : Asm) { in writeObject()
876 Asm.getSubsectionsViaSymbols()); in writeObject()
884 for (const MCSection &Section : Asm) { in writeObject()
959 unsigned NumIndirectSymbols = Asm.indirect_symbol_size(); in writeObject()
987 for (const auto &Option : Asm.getLinkerOptions()) in writeObject()
991 for (const MCSection &Sec : Asm) { in writeObject()
992 Asm.writeSectionData(W.OS, &Sec, Layout); in writeObject()
1002 for (const MCSection &Sec : Asm) { in writeObject()
1014 it = Asm.data_region_begin(), ie = Asm.data_region_end(); in writeObject()
1039 Asm.getLOHContainer().emit(*this, Layout); in writeObject()
1050 it = Asm.indirect_symbol_begin(), in writeObject()
1051 ie = Asm.indirect_symbol_end(); it != ie; ++it) { in writeObject()