[Scummvm-cvs-logs] SF.net SVN: scummvm:[49615] tools/branches/gsoc2010-decompiler/decompiler
pidgeot at users.sourceforge.net
pidgeot at users.sourceforge.net
Sun Jun 13 02:11:10 CEST 2010
Revision: 49615
http://scummvm.svn.sourceforge.net/scummvm/?rev=49615&view=rev
Author: pidgeot
Date: 2010-06-13 00:11:10 +0000 (Sun, 13 Jun 2010)
Log Message:
-----------
Formatting fixes
Modified Paths:
--------------
tools/branches/gsoc2010-decompiler/decompiler/control_flow.cpp
tools/branches/gsoc2010-decompiler/decompiler/control_flow.h
tools/branches/gsoc2010-decompiler/decompiler/decompiler.cpp
Modified: tools/branches/gsoc2010-decompiler/decompiler/control_flow.cpp
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/control_flow.cpp 2010-06-12 23:57:50 UTC (rev 49614)
+++ tools/branches/gsoc2010-decompiler/decompiler/control_flow.cpp 2010-06-13 00:11:10 UTC (rev 49615)
@@ -26,8 +26,7 @@
GraphVertex last;
std::map<uint32, GraphVertex> addrMap;
- for (InstIterator it = insts.begin(); it != insts.end(); ++it)
- {
+ for (InstIterator it = insts.begin(); it != insts.end(); ++it) {
GraphVertex cur = boost::add_vertex(g);
boost::put(boost::vertex_name, g, cur, Group(it, it));
Modified: tools/branches/gsoc2010-decompiler/decompiler/control_flow.h
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/control_flow.h 2010-06-12 23:57:50 UTC (rev 49614)
+++ tools/branches/gsoc2010-decompiler/decompiler/control_flow.h 2010-06-13 00:11:10 UTC (rev 49615)
@@ -25,9 +25,13 @@
#include "graph.h"
+/**
+ * Class for doing code flow analysis.
+ */
class ControlFlow {
private:
Graph g; ///< The control flow graph.
+
public:
/**
* Constructor for the control flow graph.
Modified: tools/branches/gsoc2010-decompiler/decompiler/decompiler.cpp
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/decompiler.cpp 2010-06-12 23:57:50 UTC (rev 49614)
+++ tools/branches/gsoc2010-decompiler/decompiler/decompiler.cpp 2010-06-13 00:11:10 UTC (rev 49615)
@@ -119,7 +119,7 @@
delete disassembler;
//Control flow analysis
- ControlFlow* cf = new ControlFlow(insts);
+ ControlFlow *cf = new ControlFlow(insts);
Graph g = cf->analyze();
if (vm.count("dump-graph")) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list