[Scummvm-cvs-logs] SF.net SVN: scummvm:[50624] tools/branches/gsoc2010-decompiler/decompiler/ graph.h
pidgeot at users.sourceforge.net
pidgeot at users.sourceforge.net
Sat Jul 3 17:26:22 CEST 2010
Revision: 50624
http://scummvm.svn.sourceforge.net/scummvm/?rev=50624&view=rev
Author: pidgeot
Date: 2010-07-03 15:26:22 +0000 (Sat, 03 Jul 2010)
Log Message:
-----------
Show block types in graph output
Modified Paths:
--------------
tools/branches/gsoc2010-decompiler/decompiler/graph.h
Modified: tools/branches/gsoc2010-decompiler/decompiler/graph.h
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/graph.h 2010-07-03 13:50:52 UTC (rev 50623)
+++ tools/branches/gsoc2010-decompiler/decompiler/graph.h 2010-07-03 15:26:22 UTC (rev 50624)
@@ -90,6 +90,28 @@
* @return The std::ostream used for output.
*/
friend std::ostream &operator<<(std::ostream &output, Group *group) {
+ output << "Block type: ";
+ switch(group->_type) {
+ case kNormal:
+ output << "Normal";
+ break;
+ case kWhileCond:
+ output << "While condition";
+ break;
+ case kDoWhileCond:
+ output << "Do-while condition";
+ break;
+ case kIfCond:
+ output << "If condition";
+ break;
+ case kBreak:
+ output << "Break";
+ break;
+ case kContinue:
+ output << "Continue";
+ break;
+ }
+ output << "\\n";
InstIterator inst = group->_start;
do {
output << boost::format("%08x: %s") % inst->_address % inst->_name;
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