Index: src/IceInstX8632.cpp |
diff --git a/src/IceInstX8632.cpp b/src/IceInstX8632.cpp |
index ae4a30d5286d14161df6c10430488b1662386a04..e210fdcfbc06b74aaf9cae73fd26f78e8a88a6c3 100644 |
--- a/src/IceInstX8632.cpp |
+++ b/src/IceInstX8632.cpp |
@@ -184,6 +184,17 @@ bool InstX8632Br::optimizeBranch(const CfgNode *NextNode) { |
return false; |
} |
+bool InstX8632Br::repointEdge(CfgNode *OldNode, CfgNode *NewNode) { |
+ if (TargetFalse == OldNode) { |
+ TargetFalse = NewNode; |
+ return true; |
+ } else if (TargetTrue == OldNode) { |
+ TargetTrue = NewNode; |
+ return true; |
+ } |
+ return false; |
+} |
+ |
InstX8632Call::InstX8632Call(Cfg *Func, Variable *Dest, Operand *CallTarget) |
: InstX8632(Func, InstX8632::Call, 1, Dest) { |
HasSideEffects = true; |