Skip to content

Commit

Permalink
Do not writeout phantom fields and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcMil committed Aug 2, 2017
1 parent 429b4da commit ac61cb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/soot/AbstractASMBackend.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ protected void generateMethods() {
List<SootMethod> sortedMethods = new ArrayList<SootMethod>(sc.getMethods());
Collections.sort(sortedMethods, new SootMethodComparator());
for (SootMethod sm : sortedMethods) {
if (sm.isPhantom())
continue;

int access = getModifiers(sm.getModifiers(), sm);
String name = sm.getName();
StringBuilder descBuilder = new StringBuilder(5);
Expand Down Expand Up @@ -373,6 +376,8 @@ protected void generateMethods() {
*/
protected void generateFields() {
for (SootField f : sc.getFields()) {
if (f.isPhantom())
continue;
String name = f.getName();
String desc = toTypeDesc(f.getType());
String sig = null;
Expand Down

0 comments on commit ac61cb7

Please sign in to comment.