Lines Matching refs:Sym
318 for (auto *Sym : G->external_symbols()) { in getExternalSymbolNames() local
319 assert(Sym->getAddress() == 0 && in getExternalSymbolNames()
321 assert(Sym->getName() != StringRef() && Sym->getName() != "" && in getExternalSymbolNames()
324 Sym->getLinkage() == Linkage::Weak in getExternalSymbolNames()
327 UnresolvedExternals[Sym->getName()] = LookupFlags; in getExternalSymbolNames()
333 for (auto *Sym : G->external_symbols()) { in applyLookupResult() local
334 assert(Sym->getOffset() == 0 && in applyLookupResult()
336 assert(Sym->getAddress() == 0 && "Symbol already resolved"); in applyLookupResult()
337 assert(!Sym->isDefined() && "Symbol being resolved is already defined"); in applyLookupResult()
338 auto ResultI = Result.find(Sym->getName()); in applyLookupResult()
340 Sym->getAddressable().setAddress(ResultI->second.getAddress()); in applyLookupResult()
342 assert(Sym->getLinkage() == Linkage::Weak && in applyLookupResult()
348 for (auto *Sym : G->external_symbols()) in applyLookupResult()
349 dbgs() << " " << Sym->getName() << ": " in applyLookupResult()
350 << formatv("{0:x16}", Sym->getAddress()) << "\n"; in applyLookupResult()
436 for (auto *Sym : G.defined_symbols()) in prune() local
437 if (Sym->isLive()) in prune()
438 Worklist.push_back(Sym); in prune()
442 auto *Sym = Worklist.back(); in prune() local
445 auto &B = Sym->getBlock(); in prune()
453 for (auto &E : Sym->getBlock().edges()) { in prune()
468 for (auto *Sym : G.defined_symbols()) in prune() local
469 if (!Sym->isLive()) in prune()
470 SymbolsToRemove.push_back(Sym); in prune()
471 for (auto *Sym : SymbolsToRemove) { in prune() local
472 LLVM_DEBUG(dbgs() << " " << *Sym << "...\n"); in prune()
473 G.removeDefinedSymbol(*Sym); in prune()
494 for (auto *Sym : G.external_symbols()) in prune() local
495 if (!Sym->isLive()) in prune()
496 SymbolsToRemove.push_back(Sym); in prune()
497 for (auto *Sym : SymbolsToRemove) { in prune() local
498 LLVM_DEBUG(dbgs() << " " << *Sym << "...\n"); in prune()
499 G.removeExternalSymbol(*Sym); in prune()