Lines Matching defs:GsymCreator
1 //===- GsymCreator.cpp ----------------------------------------------------===//
8 #include "llvm/DebugInfo/GSYM/GsymCreator.h"
24 GsymCreator::GsymCreator(bool Quiet)
29 uint32_t GsymCreator::insertFile(StringRef Path, llvm::sys::path::Style Style) {
41 uint32_t GsymCreator::insertFileEntry(FileEntry FE) {
51 uint32_t GsymCreator::copyFile(const GsymCreator &SrcGC, uint32_t FileIdx) {
68 llvm::Error GsymCreator::save(StringRef Path, llvm::endianness ByteOrder,
80 llvm::Error GsymCreator::encode(FileWriter &O) const {
87 "GsymCreator wasn't finalized prior to encoding");
192 llvm::Error GsymCreator::loadCallSitesFromYAML(StringRef YAMLFile) {
198 void GsymCreator::prepareMergedFunctions(OutputAggregator &Out) {
241 llvm::Error GsymCreator::finalize(OutputAggregator &Out) {
273 // already finalized the main GsymCreator with all of the function infos
356 uint32_t GsymCreator::copyString(const GsymCreator &SrcGC, uint32_t StrOff) {
363 uint32_t GsymCreator::insertString(StringRef S, bool Copy) {
375 // This allows GsymCreator to be really fast when parsing DWARF and
389 StringRef GsymCreator::getString(uint32_t Offset) {
392 "GsymCreator::getString expects a valid offset as parameter.");
396 void GsymCreator::addFunctionInfo(FunctionInfo &&FI) {
401 void GsymCreator::forEachFunctionInfo(
410 void GsymCreator::forEachFunctionInfo(
419 size_t GsymCreator::getNumFunctionInfos() const {
424 bool GsymCreator::IsValidTextAddress(uint64_t Addr) const {
430 std::optional<uint64_t> GsymCreator::getFirstFunctionAddress() const {
433 // already finalized GsymCreator object where its functions were sorted and
440 std::optional<uint64_t> GsymCreator::getLastFunctionAddress() const {
443 // already finalized GsymCreator object where its functions were sorted and
450 std::optional<uint64_t> GsymCreator::getBaseAddress() const {
456 uint64_t GsymCreator::getMaxAddressOffset() const {
466 uint8_t GsymCreator::getAddressOffsetSize() const {
482 uint64_t GsymCreator::calculateHeaderAndTableSize() const {
499 // and files to point to strings and files from this GsymCreator.
500 void GsymCreator::fixupInlineInfo(const GsymCreator &SrcGC, InlineInfo &II) {
507 uint64_t GsymCreator::copyFunctionInfo(const GsymCreator &SrcGC, size_t FuncIdx) {
509 // this GsymCreator and then copy the function info and update the string
521 // from SrcGC and must be converted to file indexes from this GsymCreator.
541 llvm::Error GsymCreator::saveSegments(StringRef Path,
551 llvm::Expected<std::unique_ptr<GsymCreator>> ExpectedGC =
554 GsymCreator *GC = ExpectedGC->get();
579 llvm::Expected<std::unique_ptr<GsymCreator>>
580 GsymCreator::createSegment(uint64_t SegmentSize, size_t &FuncIdx) const {
583 return std::unique_ptr<GsymCreator>();
585 std::unique_ptr<GsymCreator> GC(new GsymCreator(/*Quiet=*/true));