Skip to content

Commit 83481aa

Browse files
author
Matthias Güdemann
committed
Add possibility to mark instructions to source_locationt`
1 parent a9e2e51 commit 83481aa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/util/source_location.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,19 @@ class source_locationt:public irept
151151
return set(ID_basic_block_covered_lines, covered_lines);
152152
}
153153

154+
/// Add comment to source location as originating from removed virtual call
155+
void set_java_removed_virtual_call()
156+
{
157+
set(ID_C_java_removed_virtual_call, true);
158+
}
159+
160+
/// Get information about whether call originated from a removed virtual
161+
/// function call
162+
bool get_java_removed_virtual_call() const
163+
{
164+
return get_bool(ID_C_java_removed_virtual_call);
165+
}
166+
154167
void set_hide()
155168
{
156169
set(ID_hide, true);

0 commit comments

Comments
 (0)