28
28
29
29
import com .oracle .objectfile .debugentry .ArrayTypeEntry ;
30
30
import com .oracle .objectfile .debugentry .ClassEntry ;
31
+ import com .oracle .objectfile .debugentry .CompiledMethodEntry ;
31
32
import com .oracle .objectfile .debugentry .FieldEntry ;
32
33
import com .oracle .objectfile .debugentry .HeaderTypeEntry ;
33
34
import com .oracle .objectfile .debugentry .MemberEntry ;
34
35
import com .oracle .objectfile .debugentry .MethodEntry ;
35
- import com .oracle .objectfile .debugentry .PrimaryEntry ;
36
36
import com .oracle .objectfile .debugentry .StructureTypeEntry ;
37
37
import com .oracle .objectfile .debugentry .TypeEntry ;
38
38
@@ -149,7 +149,7 @@ CVTypeRecord buildType(TypeEntry typeEntry) {
149
149
* @param entry primaryEntry containing entities whose type records must be added
150
150
* @return type record for this function (may return existing matching record)
151
151
*/
152
- CVTypeRecord buildFunction (PrimaryEntry entry ) {
152
+ CVTypeRecord buildFunction (CompiledMethodEntry entry ) {
153
153
return buildMemberFunction (entry .getClassEntry (), entry .getPrimary ().getMethodEntry ());
154
154
}
155
155
@@ -296,7 +296,7 @@ private CVTypeRecord buildStructureTypeEntry(final StructureTypeEntry typeEntry)
296
296
297
297
/* LF_MFUNCTION records */
298
298
methods .stream ().filter (methodEntry -> methodEntry .methodName ().equals (mname )).forEach (m -> {
299
- log ("overloaded method %s(%s) attr=(%s) valuetype=%s" , m . fieldName () , m .methodName (), m .getModifiersString (), m .getValueType ().getTypeName ());
299
+ log ("overloaded method %s attr=(%s) valuetype=%s" , m .methodName (), m .getModifiersString (), m .getValueType ().getTypeName ());
300
300
CVTypeRecord .CVTypeMFunctionRecord mFunctionRecord = buildMemberFunction ((ClassEntry ) typeEntry , m );
301
301
short attr = modifiersToAttr (m );
302
302
log (" overloaded method %s" , mFunctionRecord );
@@ -311,7 +311,7 @@ private CVTypeRecord buildStructureTypeEntry(final StructureTypeEntry typeEntry)
311
311
});
312
312
313
313
methods .stream ().filter (methodEntry -> !overloaded .contains (methodEntry .methodName ())).forEach (m -> {
314
- log ("`unique method %s %s %s (...)" , m . fieldName () , m .methodName (), m .getModifiersString (), m .getValueType ().getTypeName (), m .methodName ());
314
+ log ("`unique method %s %s(...)" , m .methodName (), m .getModifiersString (), m .getValueType ().getTypeName (), m .methodName ());
315
315
CVTypeRecord .CVOneMethodRecord method = buildMethod ((ClassEntry ) typeEntry , m );
316
316
log (" unique method %s" , method );
317
317
fieldListBuilder .addField (method );
@@ -335,7 +335,7 @@ private CVTypeRecord buildStructureTypeEntry(final StructureTypeEntry typeEntry)
335
335
* Try to find a line number for the first function - if none, don't bother to create
336
336
* the record.
337
337
*/
338
- int line = classEntry .getPrimaryEntries ().isEmpty () ? 0 : classEntry .getPrimaryEntries ().get (0 ). getPrimary ( ).getLine ();
338
+ int line = classEntry .getMethods ().isEmpty () ? 0 : classEntry .getMethods ().get (0 ).getLine ();
339
339
if (line > 0 ) {
340
340
int idIdx = typeSection .getStringId (classEntry .getFullFileName ()).getSequenceNumber ();
341
341
CVTypeRecord .CVUdtTypeLineRecord udt = new CVTypeRecord .CVUdtTypeLineRecord (typeRecord .getSequenceNumber (), idIdx , line );
0 commit comments