]> git.cworth.org Git - apitrace/blobdiff - trace_model.cpp
More efficient call representation.
[apitrace] / trace_model.cpp
index e6ec467ad10bd3cbae8eaeaae030f41ba2b3f982..b0e51582bd37b85c766bcccf988d7071fe306a4a 100644 (file)
@@ -179,10 +179,10 @@ public:
 
    void visit(Call *call) {
       const char *sep = "";
-      os << bold << call->name << normal << "(";
-      for (std::vector<Arg>::iterator it = call->args.begin(); it != call->args.end(); ++it) {
-         os << sep << italic << it->first << normal << " = ";
-         _visit(it->second);
+      os << bold << call->sig->name << normal << "(";
+      for (unsigned i = 0; i < call->args.size(); ++i) {
+         os << sep << italic << call->sig->arg_names[i] << normal << " = ";
+         _visit(call->args[i]);
          sep = ", ";
       }
       os << ")";