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::finalize(OutputAggregator &Out) {
224 // already finalized the main GsymCreator with all of the function infos
306 uint32_t GsymCreator::copyString(const GsymCreator &SrcGC, uint32_t StrOff) {
313 uint32_t GsymCreator::insertString(StringRef S, bool Copy) {
325 // This allows GsymCreator to be really fast when parsing DWARF and
340 void GsymCreator::addFunctionInfo(FunctionInfo &&FI) {
345 void GsymCreator::forEachFunctionInfo(
354 void GsymCreator::forEachFunctionInfo(
363 size_t GsymCreator::getNumFunctionInfos() const {
368 bool GsymCreator::IsValidTextAddress(uint64_t Addr) const {
374 std::optional<uint64_t> GsymCreator::getFirstFunctionAddress() const {
377 // already finalized GsymCreator object where its functions were sorted and
384 std::optional<uint64_t> GsymCreator::getLastFunctionAddress() const {
387 // already finalized GsymCreator object where its functions were sorted and
394 std::optional<uint64_t> GsymCreator::getBaseAddress() const {
400 uint64_t GsymCreator::getMaxAddressOffset() const {
410 uint8_t GsymCreator::getAddressOffsetSize() const {
426 uint64_t GsymCreator::calculateHeaderAndTableSize() const {
443 // and files to point to strings and files from this GsymCreator.
444 void GsymCreator::fixupInlineInfo(const GsymCreator &SrcGC, InlineInfo &II) {
451 uint64_t GsymCreator::copyFunctionInfo(const GsymCreator &SrcGC, size_t FuncIdx) {
453 // this GsymCreator and then copy the function info and update the string
465 // from SrcGC and must be converted to file indexes from this GsymCreator.
485 llvm::Error GsymCreator::saveSegments(StringRef Path,
495 llvm::Expected<std::unique_ptr<GsymCreator>> ExpectedGC =
498 GsymCreator *GC = ExpectedGC->get();
523 llvm::Expected<std::unique_ptr<GsymCreator>>
524 GsymCreator::createSegment(uint64_t SegmentSize, size_t &FuncIdx) const {
527 return std::unique_ptr<GsymCreator>();
529 std::unique_ptr<GsymCreator> GC(new GsymCreator(/*Quiet=*/true));