Lines Matching refs:pModule

159 GNUArchiveReader* GNULDBackend::createArchiveReader(Module& pModule) {  in createArchiveReader()  argument
161 return new GNUArchiveReader(pModule, *m_pObjectReader); in createArchiveReader()
213 bool GNULDBackend::initStandardSymbols(IRBuilder& pBuilder, Module& pModule) { in initStandardSymbols() argument
219 Module::iterator iter, iterEnd = pModule.end(); in initStandardSymbols()
220 for (iter = pModule.begin(); iter != iterEnd; ++iter) { in initStandardSymbols()
699 void GNULDBackend::sizeShstrtab(Module& pModule) { in sizeShstrtab() argument
702 Module::const_iterator sect, sectEnd = pModule.end(); in sizeShstrtab()
703 for (sect = pModule.begin(); sect != sectEnd; ++sect) { in sizeShstrtab()
712 void GNULDBackend::sizeNamePools(Module& pModule) { in sizeNamePools() argument
731 Module::SymbolTable& symbols = pModule.getSymbolTable(); in sizeNamePools()
804 Module::const_lib_iterator lib, libEnd = pModule.lib_end(); in sizeNamePools()
805 for (lib = pModule.lib_begin(); lib != libEnd; ++lib) { in sizeNamePools()
863 fatal(diag::fatal_illegal_codegen_type) << pModule.name(); in sizeNamePools()
914 void GNULDBackend::emitRegNamePools(const Module& pModule, in emitRegNamePools() argument
959 const Module::SymbolTable& symbols = pModule.getSymbolTable(); in emitRegNamePools()
982 void GNULDBackend::emitDynNamePools(Module& pModule, in emitDynNamePools() argument
1025 Module::SymbolTable& symbols = pModule.getSymbolTable(); in emitDynNamePools()
1053 Module::const_lib_iterator lib, libEnd = pModule.lib_end(); in emitDynNamePools()
1054 for (lib = pModule.lib_begin(); lib != libEnd; ++lib) { in emitDynNamePools()
1292 void GNULDBackend::orderSymbolTable(Module& pModule) { in orderSymbolTable() argument
1293 Module::SymbolTable& symbols = pModule.getSymbolTable(); in orderSymbolTable()
1503 bool GNULDBackend::allocateCommonSymbols(Module& pModule) { in allocateCommonSymbols() argument
1504 SymbolCategory& symbol_list = pModule.getSymbolTable(); in allocateCommonSymbols()
1739 void GNULDBackend::createProgramHdrs(Module& pModule) { in createProgramHdrs() argument
1754 LinkerScript& ldscript = pModule.getScript(); in createProgramHdrs()
1867 sectBegin = pModule.begin(); in createProgramHdrs()
1868 sectEnd = pModule.end(); in createProgramHdrs()
1886 doCreateProgramHdrs(pModule); in createProgramHdrs()
2031 void GNULDBackend::setupGNUStackInfo(Module& pModule) { in setupGNUStackInfo() argument
2043 Module::const_obj_iterator obj, objEnd = pModule.obj_end(); in setupGNUStackInfo()
2044 for (obj = pModule.obj_begin(); obj != objEnd; ++obj) { in setupGNUStackInfo()
2074 void GNULDBackend::setOutputSectionOffset(Module& pModule) { in setOutputSectionOffset() argument
2075 LinkerScript& script = pModule.getScript(); in setOutputSectionOffset()
2106 void GNULDBackend::setOutputSectionAddress(Module& pModule) { in setOutputSectionAddress() argument
2107 RpnEvaluator evaluator(pModule, *this); in setOutputSectionAddress()
2108 LinkerScript& script = pModule.getScript(); in setOutputSectionAddress()
2294 void GNULDBackend::placeOutputSections(Module& pModule) { in placeOutputSections() argument
2297 SectionMap& sectionMap = pModule.getScript().sectionMap(); in placeOutputSections()
2299 for (Module::iterator it = pModule.begin(), ie = pModule.end(); it != ie; in placeOutputSections()
2444 void GNULDBackend::layout(Module& pModule) { in layout() argument
2446 placeOutputSections(pModule); in layout()
2449 SectionMap& sectionMap = pModule.getScript().sectionMap(); in layout()
2450 pModule.getSectionTable().clear(); in layout()
2458 (*out)->getSection()->setIndex(pModule.size()); in layout()
2459 pModule.getSectionTable().push_back((*out)->getSection()); in layout()
2464 sizeShstrtab(pModule); in layout()
2468 createProgramHdrs(pModule); in layout()
2473 setOutputSectionAddress(pModule); in layout()
2475 setOutputSectionOffset(pModule); in layout()
2478 void GNULDBackend::createAndSizeEhFrameHdr(Module& pModule) { in createAndSizeEhFrameHdr() argument
2501 void GNULDBackend::preLayout(Module& pModule, IRBuilder& pBuilder) { in preLayout() argument
2507 pModule.getSymbolTable().changeToDynamic(*f_pTDATA); in preLayout()
2510 pModule.getSymbolTable().changeToDynamic(*f_pTBSS); in preLayout()
2517 Module::obj_iterator input, inEnd = pModule.obj_end(); in preLayout()
2518 for (input = pModule.obj_begin(); input != inEnd; ++input) { in preLayout()
2522 LDSection* output_sect = pModule.getSection((*rs)->name()); in preLayout()
2528 pModule.getSectionTable().push_back(output_sect); in preLayout()
2536 LDSection* output_link = pModule.getSection(input_link->name()); in preLayout()
2568 setupGNUStackInfo(pModule); in preLayout()
2572 void GNULDBackend::postLayout(Module& pModule, IRBuilder& pBuilder) { in postLayout() argument
2575 relax(pModule, pBuilder); in postLayout()
2577 setupProgramHdrs(pModule.getScript()); in postLayout()
2580 doPostLayout(pModule, pBuilder); in postLayout()
2844 llvm::StringRef GNULDBackend::getEntry(const Module& pModule) const { in getEntry()
2845 if (pModule.getScript().hasEntry()) in getEntry()
2846 return pModule.getScript().entry(); in getEntry()
2912 bool GNULDBackend::relax(Module& pModule, IRBuilder& pBuilder) { in relax() argument
2916 getBRIslandFactory()->group(pModule); in relax()
2920 if (doRelax(pModule, pBuilder, finished)) { in relax()
2921 setOutputSectionAddress(pModule); in relax()