]> git.cworth.org Git - apitrace/blobdiff - trace_model.hpp
Unify Call::Signature into FunctionSig.
[apitrace] / trace_model.hpp
index 05d809ee69eabdd846544a92074517f5cde7d4f8..03a23894cc41f8fce08f50575752e6e905160075 100644 (file)
@@ -275,17 +275,12 @@ std::ostream & operator <<(std::ostream &os, Value *value);
 class Call
 {
 public:
-    struct Signature {
-        const char * name;
-        std::vector<const char *> arg_names;
-    };
-
     unsigned no;
-    const Signature *sig;
+    const FunctionSig *sig;
     std::vector<Value *> args;
     Value *ret;
 
-    Call(Signature *_sig) : sig(_sig), args(_sig->arg_names.size()), ret(0) { }
+    Call(FunctionSig *_sig) : sig(_sig), args(_sig->num_args), ret(0) { }
     ~Call();
 
     inline const char * name(void) const {