File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -68,18 +68,15 @@ class GlobalPropertyOpt {
68
68
69
69
#ifndef NDEBUG
70
70
friend raw_ostream &operator <<(raw_ostream &os, const Entry &entry) {
71
- if (entry.Field ) {
72
- os << " field " << entry.Field ->getName () << ' \n ' ;
73
- } else if (!entry.Value ) {
74
- os << " unknown-address\n " ;
75
- } else if (auto *Inst = dyn_cast<SILInstruction>(entry.Value )) {
76
- os << Inst->getParent ()->getParent ()->getName () << " : " << entry.Value ;
77
- } else if (auto *Arg = dyn_cast<SILArgument>(entry.Value )) {
78
- os << Arg->getParent ()->getParent ()->getName () << " : " << entry.Value ;
79
- } else {
80
- os << entry.Value ;
81
- }
82
- return os;
71
+ if (entry.Field )
72
+ return os << " field " << entry.Field ->getName () << ' \n ' ;
73
+ if (!entry.Value )
74
+ return os << " unknown-address\n " ;
75
+ if (auto *Inst = dyn_cast<SILInstruction>(entry.Value ))
76
+ os << Inst->getFunction ()->getName () << " : " << entry.Value ;
77
+ if (auto *Arg = dyn_cast<SILArgument>(entry.Value ))
78
+ return os << Arg->getFunction ()->getName () << " : " << entry.Value ;
79
+ return os << entry.Value ;
83
80
}
84
81
#endif
85
82
};
You can’t perform that action at this time.
0 commit comments