llvm.org GIT mirror llvm / 1a92d94
If the constant pool value is a extern weak symbol, emit the weak reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33543 91177308-0d34-0410-b5e6-96231b3b80d8 Lauro Ramos Venancio 13 years ago
1 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
120120 printDataDirective(MCPV->getType());
121121
122122 ARMConstantPoolValue *ACPV = (ARMConstantPoolValue*)MCPV;
123 std::string Name = Mang->getValueName(ACPV->getGV());
123 GlobalValue *GV = ACPV->getGV();
124 std::string Name = Mang->getValueName(GV);
124125 if (ACPV->isNonLazyPointer()) {
125126 GVNonLazyPtrs.insert(Name);
126127 O << TAI->getPrivateGlobalPrefix() << Name << "$non_lazy_ptr";
131132 << utostr(ACPV->getLabelId())
132133 << "+" << (unsigned)ACPV->getPCAdjustment() << ")";
133134 O << "\n";
135
136 // If the constant pool value is a extern weak symbol, remember to emit
137 // the weak reference.
138 if (GV->hasExternalWeakLinkage())
139 ExtWeakSymbols.insert(GV);
134140 }
135141
136142 void getAnalysisUsage(AnalysisUsage &AU) const {