Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2010-04-16 21:58:12 -0400
committerAlena Laskavaia2010-04-16 21:58:12 -0400
commit5a5d22c50d923c826fdcb77797fcc151862cfc61 (patch)
tree8301ba83f652db3784cea9c730fb797c0ca17585 /codan/org.eclipse.cdt.codan.ui.cfgview
parent0f78d0c5fdf8de60395010c08cb2f78e957ab9a8 (diff)
downloadorg.eclipse.cdt-5a5d22c50d923c826fdcb77797fcc151862cfc61.tar.gz
org.eclipse.cdt-5a5d22c50d923c826fdcb77797fcc151862cfc61.tar.xz
org.eclipse.cdt-5a5d22c50d923c826fdcb77797fcc151862cfc61.zip
- added more tests and support for goto/label statements
Diffstat (limited to 'codan/org.eclipse.cdt.codan.ui.cfgview')
-rw-r--r--codan/org.eclipse.cdt.codan.ui.cfgview/src/org/eclipse/cdt/codan/ui/cfgview/views/ControlFlowGraphView.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/codan/org.eclipse.cdt.codan.ui.cfgview/src/org/eclipse/cdt/codan/ui/cfgview/views/ControlFlowGraphView.java b/codan/org.eclipse.cdt.codan.ui.cfgview/src/org/eclipse/cdt/codan/ui/cfgview/views/ControlFlowGraphView.java
index 218004ab9f..59a1a4644d 100644
--- a/codan/org.eclipse.cdt.codan.ui.cfgview/src/org/eclipse/cdt/codan/ui/cfgview/views/ControlFlowGraphView.java
+++ b/codan/org.eclipse.cdt.codan.ui.cfgview/src/org/eclipse/cdt/codan/ui/cfgview/views/ControlFlowGraphView.java
@@ -171,12 +171,10 @@ public class ControlFlowGraphView extends ViewPart {
if (obj instanceof AbstractBasicBlock) {
strdata = ((AbstractBasicBlock) obj).toStringData();
}
- if (strdata == null || strdata.length() == 0) {
- if (obj instanceof IConnectorNode) {
- strdata = blockHexLabel(obj);
- } else if (obj instanceof IJumpNode) {
- strdata = blockHexLabel(((IJumpNode) obj).getJumpNode());
- }
+ if (obj instanceof IConnectorNode) {
+ strdata = blockHexLabel(obj) ;
+ } else if (obj instanceof IJumpNode) {
+ strdata = "jump to "+blockHexLabel(((IJumpNode) obj).getJumpNode());
}
return obj.getClass().getSimpleName() + ": " + strdata;
}

Back to the top