Skip to content

Commit 15ed961

Browse files
committed
Note when symbol-table entries are abstract methods
1 parent 70da606 commit 15ed961

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ void java_bytecode_convert_method_lazy(
404404
}
405405

406406
method_symbol.type=member_type;
407+
// Not used in jbmc at present, but other codebases that use jbmc as a library
408+
// use this information.
409+
method_symbol.type.set(ID_C_abstract, m.is_abstract);
407410
symbol_table.add(method_symbol);
408411
}
409412

src/util/irep_ids.def

+1
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@ IREP_ID_TWO(overlay_method, java::com.diffblue.OverlayMethodImplementation)
665665
IREP_ID_TWO(C_annotations, #annotations)
666666
IREP_ID_ONE(final)
667667
IREP_ID_ONE(bits_per_byte)
668+
IREP_ID_TWO(C_abstract, #abstract)
668669

669670
// Projects depending on this code base that wish to extend the list of
670671
// available ids should provide a file local_irep_ids.h in their source tree and

0 commit comments

Comments
 (0)