LLVM 22.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::memprof::SourceLocation Struct Reference

The location of data in the source code. Used by profile lookup API. More...

#include "llvm/ProfileData/DataAccessProf.h"

Public Member Functions

 SourceLocation (StringRef FileNameRef, uint32_t Line)
 
 SourceLocation ()
 

Public Attributes

std::string FileName
 The filename where the data is located.
 
uint32_t Line
 The line number in the source code.
 

Detailed Description

The location of data in the source code. Used by profile lookup API.

Definition at line 40 of file DataAccessProf.h.

Constructor & Destructor Documentation

◆ SourceLocation() [1/2]

llvm::memprof::SourceLocation::SourceLocation ( StringRef  FileNameRef,
uint32_t  Line 
)
inline

Definition at line 41 of file DataAccessProf.h.

◆ SourceLocation() [2/2]

llvm::memprof::SourceLocation::SourceLocation ( )
inline

Definition at line 45 of file DataAccessProf.h.

Member Data Documentation

◆ FileName

std::string llvm::memprof::SourceLocation::FileName

The filename where the data is located.

Definition at line 47 of file DataAccessProf.h.

Referenced by llvm::yaml::MappingTraits< memprof::SourceLocation >::mapping().

◆ Line

uint32_t llvm::memprof::SourceLocation::Line

The line number in the source code.

Definition at line 49 of file DataAccessProf.h.

Referenced by llvm::yaml::MappingTraits< memprof::SourceLocation >::mapping().


The documentation for this struct was generated from the following file: