File indexing completed on 2026-05-10 08:43:42
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLVM_DEBUGINFO_GSYM_LINEENTRY_H
0010 #define LLVM_DEBUGINFO_GSYM_LINEENTRY_H
0011
0012 #include "llvm/DebugInfo/GSYM/ExtractRanges.h"
0013
0014 namespace llvm {
0015 namespace gsym {
0016
0017
0018
0019
0020
0021
0022 struct LineEntry {
0023 uint64_t Addr;
0024 uint32_t File;
0025 uint32_t Line;
0026 LineEntry(uint64_t A = 0, uint32_t F = 0, uint32_t L = 0)
0027 : Addr(A), File(F), Line(L) {}
0028 bool isValid() { return File != 0; }
0029 };
0030
0031 inline raw_ostream &operator<<(raw_ostream &OS, const LineEntry &LE) {
0032 return OS << "addr=" << HEX64(LE.Addr) << ", file=" << format("%3u", LE.File)
0033 << ", line=" << format("%3u", LE.Line);
0034 }
0035
0036 inline bool operator==(const LineEntry &LHS, const LineEntry &RHS) {
0037 return LHS.Addr == RHS.Addr && LHS.File == RHS.File && LHS.Line == RHS.Line;
0038 }
0039 inline bool operator!=(const LineEntry &LHS, const LineEntry &RHS) {
0040 return !(LHS == RHS);
0041 }
0042 inline bool operator<(const LineEntry &LHS, const LineEntry &RHS) {
0043 return LHS.Addr < RHS.Addr;
0044 }
0045 }
0046 }
0047 #endif