Chromium Code Reviews| Index: src/IceInstMIPS32.cpp |
| diff --git a/src/IceInstMIPS32.cpp b/src/IceInstMIPS32.cpp |
| index c61fc9f4c13f1f7bba69c2cd902de9f9f6aad1dd..daa3c6b2990d9f10ce58e41e00934f4616aab343 100644 |
| --- a/src/IceInstMIPS32.cpp |
| +++ b/src/IceInstMIPS32.cpp |
| @@ -430,8 +430,11 @@ void InstMIPS32Br::emit(const Cfg *Func) const { |
| Ostream &Str = Func->getContext()->getStrEmit(); |
| Str << "\t" |
| "b" << InstMIPS32CondAttributes[Predicate].EmitString << "\t"; |
| - if (Label) { |
| - Str << Label->getLabelName(); |
| + if (Label != nullptr) { |
| + getSrc(0)->emit(Func); |
| + Str << ", "; |
| + getSrc(1)->emit(Func); |
| + Str << ", " << Label->getLabelName(); |
| } else { |
| if (isUnconditionalBranch()) { |
| Str << getTargetFalse()->getAsmName(); |
| @@ -475,8 +478,11 @@ void InstMIPS32Br::dump(const Cfg *Func) const { |
| Str << "\t" |
| "b" << InstMIPS32CondAttributes[Predicate].EmitString << "\t"; |
| - if (Label) { |
| - Str << Label->getLabelName(); |
| + if (Label != nullptr) { |
| + getSrc(0)->emit(Func); |
|
Jim Stichnoth
2016/08/30 13:20:36
These two emit() calls should be dump().
jaydeep.patil
2016/08/31 04:10:23
Done.
|
| + Str << ", "; |
| + getSrc(1)->emit(Func); |
| + Str << ", " << Label->getLabelName(); |
| } else { |
| if (isUnconditionalBranch()) { |
| Str << getTargetFalse()->getAsmName(); |