-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TG-2356] skip basic block instrumentation from virtual call removal #1812
Changes from all commits
a9e2e51
83481aa
e596be1
012985f
d0aea6e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,6 +151,19 @@ class source_locationt:public irept | |
return set(ID_basic_block_covered_lines, covered_lines); | ||
} | ||
|
||
/// Add comment to source location as originating from removed virtual call | ||
void set_java_removed_virtual_call() | ||
{ | ||
set(ID_C_java_removed_virtual_call, true); | ||
} | ||
|
||
/// Get information about whether call originated from a removed virtual | ||
/// function call | ||
bool get_java_removed_virtual_call() const | ||
{ | ||
return get_bool(ID_C_java_removed_virtual_call); | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm failing to parse the commit message for this one, and I'm not too happy to have Java-specific APIs enter something as general as a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tautschnig I don't mind, but please note that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe you can fix that all in one go? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As this is a fairly large refactoring I've raised an issue (#1824) to tackle this separately. |
||
void set_hide() | ||
{ | ||
set(ID_hide, true); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps the intent was already there, but this should be squashed with the commit that introduces the unit tests so that they compile.