reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Transforms/IPO/WholeProgramDevirt.cpp
 1491   if (B.Before.Bytes.empty() && B.After.Bytes.empty())
 1491   if (B.Before.Bytes.empty() && B.After.Bytes.empty())
 1496   MaybeAlign Alignment(B.GV->getAlignment());
 1499         Align(M.getDataLayout().getABITypeAlignment(B.GV->getValueType()));
 1500   B.Before.Bytes.resize(alignTo(B.Before.Bytes.size(), Alignment));
 1500   B.Before.Bytes.resize(alignTo(B.Before.Bytes.size(), Alignment));
 1503   for (size_t I = 0, Size = B.Before.Bytes.size(); I != Size / 2; ++I)
 1504     std::swap(B.Before.Bytes[I], B.Before.Bytes[Size - 1 - I]);
 1504     std::swap(B.Before.Bytes[I], B.Before.Bytes[Size - 1 - I]);
 1509       {ConstantDataArray::get(M.getContext(), B.Before.Bytes),
 1510        B.GV->getInitializer(),
 1511        ConstantDataArray::get(M.getContext(), B.After.Bytes)});
 1513       new GlobalVariable(M, NewInit->getType(), B.GV->isConstant(),
 1514                          GlobalVariable::PrivateLinkage, NewInit, "", B.GV);
 1515   NewGV->setSection(B.GV->getSection());
 1516   NewGV->setComdat(B.GV->getComdat());
 1517   NewGV->setAlignment(MaybeAlign(B.GV->getAlignment()));
 1521   NewGV->copyMetadata(B.GV, B.Before.Bytes.size());
 1521   NewGV->copyMetadata(B.GV, B.Before.Bytes.size());
 1526       B.GV->getInitializer()->getType(), 0, B.GV->getLinkage(), "",
 1526       B.GV->getInitializer()->getType(), 0, B.GV->getLinkage(), "",
 1532   Alias->setVisibility(B.GV->getVisibility());
 1533   Alias->takeName(B.GV);
 1535   B.GV->replaceAllUsesWith(Alias);
 1536   B.GV->eraseFromParent();