File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/soot/dexpler/instructions Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 40
40
import soot .Type ;
41
41
import soot .Unit ;
42
42
import soot .dexpler .DexBody ;
43
+ import soot .options .Options ;
43
44
import soot .tagkit .BytecodeOffsetTag ;
44
45
import soot .tagkit .Host ;
45
46
import soot .tagkit .LineNumberTag ;
@@ -158,11 +159,12 @@ public void setLineNumber(int lineNumber) {
158
159
* the host to tag
159
160
*/
160
161
protected void addTags (Host host ) {
161
- if (lineNumber != -1 ) {
162
+ if (Options . v (). keep_line_number () && lineNumber != -1 ) {
162
163
host .addTag (new LineNumberTag (lineNumber ));
163
164
host .addTag (new SourceLineNumberTag (lineNumber ));
164
165
}
165
- host .addTag (new BytecodeOffsetTag (codeAddress ));
166
+ if (Options .v ().keep_offset ())
167
+ host .addTag (new BytecodeOffsetTag (codeAddress ));
166
168
}
167
169
168
170
// /**
You can’t perform that action at this time.
0 commit comments