@@ -74,8 +74,8 @@ TEST(GSYMTest, TestFunctionInfo) {
74
74
EXPECT_EQ (FI.size (), Size );
75
75
const uint32_t FileIdx = 1 ;
76
76
const uint32_t Line = 12 ;
77
- FI.LineTable = LineTable ();
78
- FI.LineTable ->push (LineEntry (StartAddr,FileIdx,Line));
77
+ FI.OptLineTable = LineTable ();
78
+ FI.OptLineTable ->push (LineEntry (StartAddr,FileIdx,Line));
79
79
EXPECT_TRUE (FI.hasRichInfo ());
80
80
FI.clear ();
81
81
EXPECT_FALSE (FI.isValid ());
@@ -110,8 +110,8 @@ TEST(GSYMTest, TestFunctionInfo) {
110
110
// best version of a function info.
111
111
FunctionInfo FISymtab (StartAddr, Size , NameOffset);
112
112
FunctionInfo FIWithLines (StartAddr, Size , NameOffset);
113
- FIWithLines.LineTable = LineTable ();
114
- FIWithLines.LineTable ->push (LineEntry (StartAddr,FileIdx,Line));
113
+ FIWithLines.OptLineTable = LineTable ();
114
+ FIWithLines.OptLineTable ->push (LineEntry (StartAddr,FileIdx,Line));
115
115
// Test that a FunctionInfo with just a name and size is less than one
116
116
// that has name, size and any number of line table entries
117
117
EXPECT_LT (FISymtab, FIWithLines);
@@ -127,13 +127,13 @@ TEST(GSYMTest, TestFunctionInfo) {
127
127
// Test if we have an entry with lines and one with more lines for the same
128
128
// range, the ones with more lines is greater than the one with less.
129
129
FunctionInfo FIWithMoreLines = FIWithLines;
130
- FIWithMoreLines.LineTable ->push (LineEntry (StartAddr,FileIdx,Line+5 ));
130
+ FIWithMoreLines.OptLineTable ->push (LineEntry (StartAddr,FileIdx,Line+5 ));
131
131
EXPECT_LT (FIWithLines, FIWithMoreLines);
132
132
133
133
// Test that if we have the same number of lines we compare the line entries
134
- // in the FunctionInfo.LineTable .Lines vector.
134
+ // in the FunctionInfo.OptLineTable .Lines vector.
135
135
FunctionInfo FIWithLinesWithHigherAddress = FIWithLines;
136
- FIWithLinesWithHigherAddress.LineTable ->get (0 ).Addr += 0x10 ;
136
+ FIWithLinesWithHigherAddress.OptLineTable ->get (0 ).Addr += 0x10 ;
137
137
EXPECT_LT (FIWithLines, FIWithLinesWithHigherAddress);
138
138
}
139
139
0 commit comments