reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
206 if (GV.hasName()) { 207 VI = ImportIndex.getValueInfo(GV.getGUID()); 210 if (Function *F = dyn_cast<Function>(&GV)) { 226 GV.setDSOLocal(true); 227 if (GV.hasDLLImportStorageClass()) 228 GV.setDLLStorageClass(GlobalValue::DefaultStorageClass); 241 if (!GV.isDeclaration() && VI && ImportIndex.withGlobalValueDeadStripping()) { 242 if (GlobalVariable *V = dyn_cast<GlobalVariable>(&GV)) { 256 if (GV.hasLocalLinkage() && 257 ((DoPromote = shouldPromoteLocalToGlobal(&GV)) || isPerformingImport())) { 259 auto Name = GV.getName().str(); 264 GV.setName(getName(&GV, DoPromote)); 264 GV.setName(getName(&GV, DoPromote)); 265 GV.setLinkage(getLinkage(&GV, DoPromote)); 265 GV.setLinkage(getLinkage(&GV, DoPromote)); 266 if (!GV.hasLocalLinkage()) 267 GV.setVisibility(GlobalValue::HiddenVisibility); 271 if (const auto *C = GV.getComdat()) 273 RenamedComdats.try_emplace(C, M.getOrInsertComdat(GV.getName())); 275 GV.setLinkage(getLinkage(&GV, /* DoPromote */ false)); 275 GV.setLinkage(getLinkage(&GV, /* DoPromote */ false)); 280 auto *GO = dyn_cast<GlobalObject>(&GV);