• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/lld/COFF/

Lines Matching refs:sym

351     CVSymbol sym(recordData);
352 discoverTypeIndicesInSymbol(sym, refs);
378 copyAndAlignSymbol(const CVSymbol &sym, MutableArrayRef<uint8_t> &alignedMem) {
379 size_t size = alignTo(sym.length(), alignOf(CodeViewContainer::Pdb));
387 memcpy(newData.data(), sym.data().data(), sym.length());
388 memset(newData.data() + sym.length(), 0, size - sym.length());
408 uint32_t curOffset, CVSymbol &sym) {
409 assert(symbolOpensScope(sym.kind()));
413 reinterpret_cast<const ScopeRecord *>(sym.content().data()));
428 static bool symbolGoesInModuleStream(const CVSymbol &sym, bool isGlobalScope) {
429 switch (sym.kind()) {
451 static bool symbolGoesInGlobalsStream(const CVSymbol &sym,
453 switch (sym.kind()) {
476 unsigned symOffset, const CVSymbol &sym) {
477 switch (sym.kind()) {
486 builder.addGlobalSymbol(sym);
491 if (sym.kind() == SymbolKind::S_LPROC32)
497 ps.Name = getSymbolName(sym);
520 symsBuffer, [&](CVSymbol sym) -> llvm::Error {
522 alignTo(sym.length(), alignOf(CodeViewContainer::Pdb));
523 needsRealignment |= realignedSize != sym.length();
551 symsBuffer, [&](CVSymbol sym) -> llvm::Error {
555 recordBytes = copyAndAlignSymbol(sym, alignedSymbolMem);
556 sym = CVSymbol(recordBytes);
561 const_cast<uint8_t *>(sym.data().data()), sym.length());
567 if (!discoverTypeIndicesInSymbol(sym, typeRefs)) {
569 utohexstr(sym.kind()));
574 remapTypesInSymbolRecord(file, sym.kind(), recordBytes, indexMap,
580 sym = CVSymbol(recordBytes);
584 recordStringTableReferences(sym.kind(), recordBytes, stringTableRefs);
587 if (symbolOpensScope(sym.kind()))
588 scopeStackOpen(scopes, curSymOffset, sym);
589 else if (symbolEndsScope(sym.kind()))
596 if (symbolGoesInGlobalsStream(sym, !scopes.empty())) {
598 file->moduleDBI->getModuleIndex(), curSymOffset, sym);
602 if (symbolGoesInModuleStream(sym, scopes.empty())) {
606 if (sym.data().data() == bulkSymbols.end()) {
608 bulkSymbols.size() + sym.length());
613 curSymOffset += sym.length();
1251 SectionSym sym(SymbolRecordKind::SectionSym);
1252 sym.Alignment = 12; // 2^12 = 4KB
1253 sym.Characteristics = os.header.Characteristics;
1254 sym.Length = os.getVirtualSize();
1255 sym.Name = os.name;
1256 sym.Rva = os.getRVA();
1257 sym.SectionNumber = os.sectionIndex;
1259 sym, bAlloc, CodeViewContainer::Pdb));