Lines Matching refs:GV
24 static void makeVisible(GlobalValue &GV, bool Delete) { in makeVisible() argument
25 bool Local = GV.hasLocalLinkage(); in makeVisible()
27 GV.setLinkage(GlobalValue::ExternalLinkage); in makeVisible()
29 GV.setVisibility(GlobalValue::HiddenVisibility); in makeVisible()
33 if (!GV.hasLinkOnceLinkage()) { in makeVisible()
34 assert(!GV.isDiscardableIfUnused()); in makeVisible()
39 switch (GV.getLinkage()) { in makeVisible()
43 GV.setLinkage(GlobalValue::WeakAnyLinkage); in makeVisible()
46 GV.setLinkage(GlobalValue::WeakODRLinkage); in makeVisible()
72 for (GlobalVariable &GV : M.globals()) { in run()
73 bool Delete = deleteStuff == (bool)Named.count(&GV) && in run()
74 !GV.isDeclaration() && (!GV.isConstant() || !keepConstInit); in run()
76 if (GV.hasAvailableExternallyLinkage()) in run()
78 if (GV.getName() == "llvm.global_ctors") in run()
82 makeVisible(GV, Delete); in run()
86 GV.setInitializer(nullptr); in run()
87 GV.setComdat(nullptr); in run()