Home | History | Annotate | Download | only in Linker

Lines Matching refs:srcM

380     Module *DstM, *SrcM;
410 ModuleLinker(Module *dstM, TypeSet &Set, Module *srcM, unsigned mode)
411 : DstM(dstM), SrcM(srcM), TypeMap(Set),
610 for (Module::global_iterator I = SrcM->global_begin(),
611 E = SrcM->global_end(); I != E; ++I) {
627 for (Module::iterator I = SrcM->begin(), E = SrcM->end(); I != E; ++I) {
637 SrcStructTypes.run(*SrcM, true);
940 for (Module::const_global_iterator I = SrcM->global_begin(),
941 E = SrcM->global_end(); I != E; ++I) {
999 for (Module::alias_iterator I = SrcM->alias_begin(), E = SrcM->alias_end();
1014 const NamedMDNode *SrcModFlags = SrcM->getModuleFlagsMetadata();
1015 for (Module::const_named_metadata_iterator I = SrcM->named_metadata_begin(),
1016 E = SrcM->named_metadata_end(); I != E; ++I) {
1031 const NamedMDNode *SrcModFlags = SrcM->getModuleFlagsMetadata();
1183 assert(SrcM && "Null source module");
1187 if (DstM->getDataLayout().empty() && !SrcM->getDataLayout().empty())
1188 DstM->setDataLayout(SrcM->getDataLayout());
1191 if (DstM->getTargetTriple().empty() && !SrcM->getTargetTriple().empty())
1192 DstM->setTargetTriple(SrcM->getTargetTriple());
1194 if (!SrcM->getDataLayout().empty() && !DstM->getDataLayout().empty() &&
1195 SrcM->getDataLayout() != DstM->getDataLayout())
1197 if (!SrcM->getTargetTriple().empty() &&
1198 DstM->getTargetTriple() != SrcM->getTargetTriple()) {
1200 if (!SrcM->getModuleIdentifier().empty())
1201 errs() << SrcM->getModuleIdentifier() << ": ";
1202 errs() << "'" << SrcM->getTargetTriple() << "' and '"
1207 if (!SrcM->getModuleInlineAsm().empty()) {
1209 DstM->setModuleInlineAsm(SrcM->getModuleInlineAsm());
1212 SrcM->getModuleInlineAsm());
1220 for (Module::global_iterator I = SrcM->global_begin(),
1221 E = SrcM->global_end(); I != E; ++I)
1230 for (Module::iterator I = SrcM->begin(), E = SrcM->end(); I != E; ++I)
1235 for (Module::alias_iterator I = SrcM->alias_begin(),
1236 E = SrcM->alias_end(); I != E; ++I)
1249 for (Module::iterator SF = SrcM->begin(), E = SrcM->end(); SF != E; ++SF) {