Go to the documentation of this file.
9 #ifndef LLVM_DEBUGINFO_GSYM_FUNCTIONINFO_H
10 #define LLVM_DEBUGINFO_GSYM_FUNCTIONINFO_H
186 return LHS.Range ==
RHS.Range &&
LHS.Name ==
RHS.Name &&
187 LHS.OptLineTable ==
RHS.OptLineTable &&
LHS.Inline ==
RHS.Inline;
199 if (
LHS.Range !=
RHS.Range)
200 return LHS.Range <
RHS.Range;
203 if (
LHS.Inline.hasValue() !=
RHS.Inline.hasValue())
204 return RHS.Inline.hasValue();
206 return LHS.OptLineTable <
RHS.OptLineTable;
214 #endif // LLVM_DEBUGINFO_GSYM_FUNCTIONINFO_H
This is an optimization pass for GlobalISel generic memory operations.
uint32_t Name
String table offset in the string table.
bool isValid() const
Query if a FunctionInfo object is valid.
llvm::Optional< LineTable > OptLineTable
Tagged union holding either a T or a Error.
bool operator==(const FunctionInfo &LHS, const FunctionInfo &RHS)
GsymReader is used to read GSYM data from a file or buffer.
raw_ostream & operator<<(raw_ostream &OS, const FunctionInfo &R)
bool hasRichInfo() const
Query if a FunctionInfo has rich debug info.
uint64_t startAddress() const
static llvm::Expected< LookupResult > lookup(DataExtractor &Data, const GsymReader &GR, uint64_t FuncAddr, uint64_t Addr)
Lookup an address within a FunctionInfo object's data stream.
This class implements an extremely fast bulk output stream that can only output to a stream.
llvm::Optional< InlineInfo > Inline
Function information in GSYM files encodes information for one contiguous address range.
A class that represents an address range.
static llvm::Expected< FunctionInfo > decode(DataExtractor &Data, uint64_t BaseAddr)
Decode an object from a binary data stream.
llvm::Expected< uint64_t > encode(FileWriter &O) const
Encode this object into FileWriter stream.
FunctionInfo(uint64_t Addr=0, uint64_t Size=0, uint32_t N=0)
A simplified binary data writer class that doesn't require targets, target definitions,...
uint64_t endAddress() const
bool operator!=(const FunctionInfo &LHS, const FunctionInfo &RHS)
bool operator<(const FunctionInfo &LHS, const FunctionInfo &RHS)
This sorting will order things consistently by address range first, but then followed by inlining bei...