Lines Matching +full:apr +full:- +full:v2

1 //===- MapFile.cpp --------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
28 //===----------------------------------------------------------------------===//
54 // locale-agnostic version.
58 constexpr const char *const months[12] = {"Jan", "Feb", "Mar", "Apr", in writeFormattedTimestamp()
62 os << format("%s %s %2d %02d:%02d:%02d %d", days[time->tm_wday], in writeFormattedTimestamp()
63 months[time->tm_mon], time->tm_mday, time->tm_hour, time->tm_min, in writeFormattedTimestamp()
64 time->tm_sec, time->tm_year + 1900); in writeFormattedTimestamp()
88 uint64_t rvaa = imageBase + a.first->getRVA(); in sortUniqueSymbols()
89 uint64_t rvab = imageBase + b.first->getRVA(); in sortUniqueSymbols()
104 for (Symbol *b : file->getSymbols()) { in getSymbols()
105 if (!b || !b->isLive()) in getSymbols()
108 COFFSymbolRef symRef = sym->getCOFFSymbol(); in getSymbols()
122 if (!file->live) in getSymbols()
125 if (!file->thunkSym) in getSymbols()
128 if (!file->thunkLive) in getSymbols()
131 if (auto *thunkSym = dyn_cast<Defined>(file->thunkSym)) in getSymbols()
134 if (auto *impSym = dyn_cast_or_null<Defined>(file->impSym)) in getSymbols()
155 address = absSym->getVA(); in getSymbolStrings()
158 fileDescr = "<linker-defined>"; in getSymbolStrings()
161 } else if (Chunk *chunk = sym->getChunk()) { in getSymbolStrings()
162 address = sym->getRVA(); in getSymbolStrings()
164 address -= sec->header.VirtualAddress; in getSymbolStrings()
166 sectionIdx = chunk->getOutputSectionIdx(); in getSymbolStrings()
170 file = impSym->file; in getSymbolStrings()
172 file = thunkSym->wrappedSym->file; in getSymbolStrings()
174 file = sym->getFile(); in getSymbolStrings()
177 if (!file->parentName.empty()) { in getSymbolStrings()
178 fileDescr = sys::path::filename(file->parentName); in getSymbolStrings()
182 fileDescr += sys::path::filename(file->getName()); in getSymbolStrings()
187 os << left_justify(sym->getName(), 26); in getSymbolStrings()
189 os << format_hex_no_prefix((ctx.config.imageBase + sym->getRVA()), 16); in getSymbolStrings()
256 for (Chunk *c : sec->chunks) { in writeMapFile()
262 c->getSectionName() != ChunkRanges.back().first->getSectionName()) { in writeMapFile()
270 (sec->header.Characteristics & COFF::IMAGE_SCN_CNT_CODE) && in writeMapFile()
271 (sec->header.Characteristics & COFF::IMAGE_SCN_MEM_READ) && in writeMapFile()
272 (sec->header.Characteristics & COFF::IMAGE_SCN_MEM_EXECUTE); in writeMapFile()
277 cr.second->getRVA() + cr.second->getSize() - cr.first->getRVA(); in writeMapFile()
279 auto address = cr.first->getRVA() - sec->header.VirtualAddress; in writeMapFile()
280 writeHeader(os, sec->sectionIndex, address); in writeMapFile()
282 os << " " << left_justify(cr.first->getSectionName(), 23); in writeMapFile()
305 Chunk *chunk = entry->getChunk(); in writeMapFile()
306 entrySecIndex = chunk->getOutputSectionIdx(); in writeMapFile()
308 entry->getRVA() - ctx.getOutputSection(chunk)->header.VirtualAddress; in writeMapFile()