LLVM 20.0.0git
Public Member Functions | List of all members
llvm::gsym::CallSiteInfoLoader Class Reference

#include "llvm/DebugInfo/GSYM/CallSiteInfo.h"

Public Member Functions

 CallSiteInfoLoader (GsymCreator &GCreator, std::vector< FunctionInfo > &Funcs)
 Constructor that initializes the CallSiteInfoLoader with necessary data structures.
 
llvm::Error loadYAML (StringRef YAMLFile)
 This method reads the specified YAML file, parses its content, and updates the Funcs vector with call site information based on the YAML data.
 

Detailed Description

Definition at line 83 of file CallSiteInfo.h.

Constructor & Destructor Documentation

◆ CallSiteInfoLoader()

llvm::gsym::CallSiteInfoLoader::CallSiteInfoLoader ( GsymCreator GCreator,
std::vector< FunctionInfo > &  Funcs 
)
inline

Constructor that initializes the CallSiteInfoLoader with necessary data structures.

Parameters
GCreatorA reference to the GsymCreator.

Definition at line 89 of file CallSiteInfo.h.

Member Function Documentation

◆ loadYAML()

Error CallSiteInfoLoader::loadYAML ( StringRef  YAMLFile)

This method reads the specified YAML file, parses its content, and updates the Funcs vector with call site information based on the YAML data.

Parameters
FuncsA reference to a vector of FunctionInfo objects to be populated.
YAMLFileA StringRef representing the path to the YAML file to be loaded.
Returns
An llvm::Error indicating success or describing any issues encountered during the loading process.

Definition at line 152 of file CallSiteInfo.cpp.

References llvm::createStringError(), llvm::errorCodeToError(), and llvm::MemoryBuffer::getFile().

Referenced by llvm::gsym::GsymCreator::loadCallSitesFromYAML().


The documentation for this class was generated from the following files: