File indexing completed on 2026-05-10 08:43:43
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef LLVM_DEBUGINFO_LOGICALVIEW_CORE_LVSORT_H
0014 #define LLVM_DEBUGINFO_LOGICALVIEW_CORE_LVSORT_H
0015
0016 namespace llvm {
0017 namespace logicalview {
0018
0019 class LVObject;
0020
0021
0022 enum class LVSortMode {
0023 None = 0,
0024 Kind,
0025 Line,
0026 Name,
0027 Offset
0028 };
0029
0030
0031 using LVSortValue = int;
0032 using LVSortFunction = LVSortValue (*)(const LVObject *LHS,
0033 const LVObject *RHS);
0034
0035
0036 LVSortFunction getSortFunction();
0037
0038
0039 LVSortValue compareKind(const LVObject *LHS, const LVObject *RHS);
0040 LVSortValue compareLine(const LVObject *LHS, const LVObject *RHS);
0041 LVSortValue compareName(const LVObject *LHS, const LVObject *RHS);
0042 LVSortValue compareOffset(const LVObject *LHS, const LVObject *RHS);
0043 LVSortValue compareRange(const LVObject *LHS, const LVObject *RHS);
0044 LVSortValue sortByKind(const LVObject *LHS, const LVObject *RHS);
0045 LVSortValue sortByLine(const LVObject *LHS, const LVObject *RHS);
0046 LVSortValue sortByName(const LVObject *LHS, const LVObject *RHS);
0047
0048 }
0049 }
0050
0051 #endif