Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:GV

47 TargetLoweringObjectFileELF::getCFIPersonalitySymbol(const GlobalValue *GV,
55 return Mang->getSymbol(GV);
58 Mang->getSymbol(GV)->getName());
91 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
99 Mang->getNameWithPrefix(Name, GV, true);
107 MCSymbol *Sym = Mang->getSymbol(GV);
108 StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
117 getTTypeGlobalReference(GV, Mang, MMI, Encoding, Streamer);
204 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
206 StringRef SectionName = GV->getSection();
237 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
249 if ((GV->isWeakForLinker() || EmitUniquedSection) &&
255 MCSymbol *Sym = Mang->getSymbol(GV);
259 if (GV->isWeakForLinker()) {
279 TM.getDataLayout()->getPreferredAlignment(cast<GlobalVariable>(GV));
485 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
492 MCSectionMachO::ParseSectionSpecifier(GV->getSection(), Segment, Section,
496 report_fatal_error("Global variable '" + GV->getName() +
498 GV->getSection() + "': " + ErrorCode + ".");
515 report_fatal_error("Global variable '" + GV->getName() +
524 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
532 return GV->isWeakForLinker() ? TextCoalSection : TextSection;
536 if (GV->isWeakForLinker()) {
544 TM.getDataLayout()->getPreferredAlignment(cast<GlobalVariable>(GV)) < 32)
550 if (Kind.isMergeable2ByteCString() && !GV->hasExternalLinkage() &&
551 TM.getDataLayout()->getPreferredAlignment(cast<GlobalVariable>(GV)) < 32)
607 shouldEmitUsedDirectiveFor(const GlobalValue *GV, Mangler *Mang) const {
610 if (!GV) return false;
613 if (GV->hasLocalLinkage() && !isa<Function>(GV)) {
617 MCSymbol *Sym = Mang->getSymbol(GV);
626 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
636 Mang->getNameWithPrefix(Name, GV, true);
643 GV->hasHiddenVisibility() ? MachOMMI.getHiddenGVStubEntry(SSym) :
646 MCSymbol *Sym = Mang->getSymbol(GV);
647 StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
656 getTTypeGlobalReference(GV, Mang, MMI, Encoding, Streamer);
660 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
667 Mang->getNameWithPrefix(Name, GV, true);
675 MCSymbol *Sym = Mang->getSymbol(GV);
676 StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
722 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
726 SmallString<128> Name(GV->getSection().c_str());
727 if (GV->isWeakForLinker()) {
730 MCSymbol *Sym = Mang->getSymbol(GV);
757 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
762 if (GV->isWeakForLinker()) {
765 MCSymbol *Sym = Mang->getSymbol(GV);